diff options
| author | Reid Kleckner <rnk@google.com> | 2019-11-18 10:52:10 -0800 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2019-11-18 10:52:41 -0800 |
| commit | 1ff5f0ced3163e457c799bd3bd838153806d6320 (patch) | |
| tree | b8a0e468d87c525e32ee9cdfdf476c66a2cecf02 /clang/lib/Driver | |
| parent | 30e7ee3c4bac4a12ea584a879aa320bd4e035cc2 (diff) | |
| download | bcm5719-llvm-1ff5f0ced3163e457c799bd3bd838153806d6320.tar.gz bcm5719-llvm-1ff5f0ced3163e457c799bd3bd838153806d6320.zip | |
Revert "[Remarks][Driver] Use different remark files when targeting multiple architectures"
This reverts commit b4e2b112b58154a89171df39dae80044865ff4ff.
Test doesn't appear to pass on Windows, maybe all non-Mac.
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Clang.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 2e3624e6cd2..6f25eea243a 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -5218,8 +5218,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (A) { CmdArgs.push_back(A->getValue()); } else { - bool hasMultipleArchs = - Args.getAllArgValues(options::OPT_arch).size() > 1; SmallString<128> F; if (Args.hasArg(options::OPT_c) || Args.hasArg(options::OPT_S)) { @@ -5244,22 +5242,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, } } - // If we're having more than one "-arch", we should name the files - // differently so that every cc1 invocation writes to a different file. - // We're doing that by appending "-<arch>" with "<arch>" being the arch - // name from the triple. - if (hasMultipleArchs) { - // First, remember the extension. - SmallString<64> OldExtension = llvm::sys::path::extension(F); - // then, remove it. - llvm::sys::path::replace_extension(F, ""); - // attach -<arch> to it. - F += "-"; - F += Triple.getArchName(); - // put back the extension. - llvm::sys::path::replace_extension(F, OldExtension); - } - std::string Extension = "opt."; if (const Arg *A = Args.getLastArg(options::OPT_fsave_optimization_record_EQ)) |

