summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-02-13 13:42:54 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-02-13 13:42:54 +0000
commit0772c42385c0d005db0ba75ecbcc54d353763282 (patch)
treed1dc6509a577aee07be533cbae15939b0aa32f2c /clang/lib/Frontend/CompilerInstance.cpp
parent2193e23cd72731c0d46a4ca8f09efe88b1c5f7b2 (diff)
downloadbcm5719-llvm-0772c42385c0d005db0ba75ecbcc54d353763282.tar.gz
bcm5719-llvm-0772c42385c0d005db0ba75ecbcc54d353763282.zip
Reduce the number of implicit StringRef->std::string conversions by threading StringRef through more APIs.
No functionality change intended. llvm-svn: 260815
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 3edcf5d654b..2b940ce360c 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -467,7 +467,7 @@ IntrusiveRefCntPtr<ASTReader> CompilerInstance::createPCHExternalASTSource(
// Code Completion
static bool EnableCodeCompletion(Preprocessor &PP,
- const std::string &Filename,
+ StringRef Filename,
unsigned Line,
unsigned Column) {
// Tell the source manager to chop off the given file at a specific
OpenPOWER on IntegriCloud