summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-05-29 11:04:56 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-05-29 11:04:56 +0000
commit442b9a90a47450b446c08aaae844a95baa2b92e3 (patch)
tree2b7f7fff01cbb0453bf1f111bb4f85e69221d3a0 /clang/lib/Frontend/CompilerInvocation.cpp
parent728f4448a91f0e19e71244efe94d894649102022 (diff)
downloadbcm5719-llvm-442b9a90a47450b446c08aaae844a95baa2b92e3.tar.gz
bcm5719-llvm-442b9a90a47450b446c08aaae844a95baa2b92e3.zip
Avoid unnecessary std::string copies. NFC.
llvm-svn: 271182
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 4bb08c8a81c..42ce6df1329 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -400,7 +400,7 @@ static void setPGOInstrumentor(CodeGenOptions &Opts, ArgList &Args,
// Set the profile kind using fprofile-instrument-use-path.
static void setPGOUseInstrumentor(CodeGenOptions &Opts,
- const std::string ProfileName) {
+ const Twine &ProfileName) {
auto ReaderOrErr = llvm::IndexedInstrProfReader::create(ProfileName);
// In error, return silently and let Clang PGOUse report the error message.
if (auto E = ReaderOrErr.takeError()) {
OpenPOWER on IntegriCloud