summaryrefslogtreecommitdiffstats
path: root/include/clang/Driver/Compilation.h
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-07 21:27:26 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-07 21:27:26 +0000
commit70d1335d228e2968a4a7e94183acba959e30f468 (patch)
tree0e4de0db018847764418728314679cfa37f3016c /include/clang/Driver/Compilation.h
parentc99e5f9f183e80b874156f28f745101ccaaf5076 (diff)
Turn ArchName/BoundArch in Driver from raw pointer to StringRef (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver/Compilation.h')
-rw-r--r--include/clang/Driver/Compilation.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Driver/Compilation.h b/include/clang/Driver/Compilation.h
index b87a121187..fbc43089fc 100644
--- a/include/clang/Driver/Compilation.h
+++ b/include/clang/Driver/Compilation.h
@@ -69,8 +69,9 @@ class Compilation {
/// Cache of translated arguments for a particular tool chain and bound
/// architecture.
- llvm::DenseMap<std::pair<const ToolChain *, const char *>,
- llvm::opt::DerivedArgList *> TCArgs;
+ llvm::DenseMap<std::pair<const ToolChain *, StringRef>,
+ llvm::opt::DerivedArgList *>
+ TCArgs;
/// Temporary files which should be removed on exit.
llvm::opt::ArgStringList TempFiles;
@@ -184,7 +185,7 @@ public:
///
/// \param BoundArch - The bound architecture name, or 0.
const llvm::opt::DerivedArgList &getArgsForToolChain(const ToolChain *TC,
- const char *BoundArch);
+ StringRef BoundArch);
/// addTempFile - Add a file to remove on exit, and returns its
/// argument.