@@ -2194,12 +2194,6 @@ bool Driver::HandleImmediateArgs(const Compilation &C) {
2194
2194
return false ;
2195
2195
}
2196
2196
2197
- if (C.getArgs ().hasArg (options::OPT_print_std_module_manifest_path)) {
2198
- llvm::outs () << GetStdModuleManifestPath (C, C.getDefaultToolChain ())
2199
- << ' \n ' ;
2200
- return false ;
2201
- }
2202
-
2203
2197
if (C.getArgs ().hasArg (options::OPT_print_runtime_dir)) {
2204
2198
if (std::optional<std::string> RuntimePath = TC.getRuntimePath ())
2205
2199
llvm::outs () << *RuntimePath << ' \n ' ;
@@ -6172,44 +6166,6 @@ std::string Driver::GetProgramPath(StringRef Name, const ToolChain &TC) const {
6172
6166
return std::string (Name);
6173
6167
}
6174
6168
6175
- std::string Driver::GetStdModuleManifestPath (const Compilation &C,
6176
- const ToolChain &TC) const {
6177
- std::string error = " <NOT PRESENT>" ;
6178
-
6179
- switch (TC.GetCXXStdlibType (C.getArgs ())) {
6180
- case ToolChain::CST_Libcxx: {
6181
- std::string lib = GetFilePath (" libc++.so" , TC);
6182
-
6183
- // Note when there are multiple flavours of libc++ the module json needs to
6184
- // look at the command-line arguments for the proper json.
6185
- // These flavours do not exist at the moment, but there are plans to
6186
- // provide a variant that is built with sanitizer instrumentation enabled.
6187
-
6188
- // For example
6189
- // StringRef modules = [&] {
6190
- // const SanitizerArgs &Sanitize = TC.getSanitizerArgs(C.getArgs());
6191
- // if (Sanitize.needsAsanRt())
6192
- // return "modules-asan.json";
6193
- // return "modules.json";
6194
- // }();
6195
-
6196
- SmallString<128 > path (lib.begin (), lib.end ());
6197
- llvm::sys::path::remove_filename (path);
6198
- llvm::sys::path::append (path, " modules.json" );
6199
- if (TC.getVFS ().exists (path))
6200
- return static_cast <std::string>(path);
6201
-
6202
- return error;
6203
- }
6204
-
6205
- case ToolChain::CST_Libstdcxx:
6206
- // libstdc++ does not provide Standard library modules yet.
6207
- return error;
6208
- }
6209
-
6210
- return error;
6211
- }
6212
-
6213
6169
std::string Driver::GetTemporaryPath (StringRef Prefix, StringRef Suffix) const {
6214
6170
SmallString<128 > Path;
6215
6171
std::error_code EC = llvm::sys::fs::createTemporaryFile (Prefix, Suffix, Path);
0 commit comments