diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-07 21:27:26 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-07 21:27:26 +0000 |
commit | c50b1a263bcb7edd1d6f2e08cb47a6dcc0562eb7 (patch) | |
tree | 09fd43ccd56014270c59943dda845dee097b0b39 /clang/lib/Driver/Compilation.cpp | |
parent | 8f04805c9ffe79f89b717e21004ad4a90822ad78 (diff) | |
download | bcm5719-llvm-c50b1a263bcb7edd1d6f2e08cb47a6dcc0562eb7.tar.gz bcm5719-llvm-c50b1a263bcb7edd1d6f2e08cb47a6dcc0562eb7.zip |
Turn ArchName/BoundArch in Driver from raw pointer to StringRef (NFC)
llvm-svn: 283605
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
-rw-r--r-- | clang/lib/Driver/Compilation.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index 6a2616f0c2a..6bbaae640ec 100644 --- a/clang/lib/Driver/Compilation.cpp +++ b/clang/lib/Driver/Compilation.cpp @@ -37,11 +37,9 @@ Compilation::~Compilation() { delete Args; // Free any derived arg lists. - for (llvm::DenseMap<std::pair<const ToolChain*, const char*>, - DerivedArgList*>::iterator it = TCArgs.begin(), - ie = TCArgs.end(); it != ie; ++it) - if (it->second != TranslatedArgs) - delete it->second; + for (auto Arg : TCArgs) + if (Arg.second != TranslatedArgs) + delete Arg.second; // Free redirections of stdout/stderr. if (Redirects) { @@ -53,7 +51,7 @@ Compilation::~Compilation() { } const DerivedArgList &Compilation::getArgsForToolChain(const ToolChain *TC, - const char *BoundArch) { + StringRef BoundArch) { if (!TC) TC = &DefaultToolChain; |