[llvm] r276310 - Avoid a string copy, NFC
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 21 10:50:07 PDT 2016
Author: vedantk
Date: Thu Jul 21 12:50:07 2016
New Revision: 276310
URL: http://llvm.org/viewvc/llvm-project?rev=276310&view=rev
Log:
Avoid a string copy, NFC
Modified:
llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp?rev=276310&r1=276309&r2=276310&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp Thu Jul 21 12:50:07 2016
@@ -600,7 +600,7 @@ void InstrProfiling::emitUses() {
}
void InstrProfiling::emitInitialization() {
- std::string InstrProfileOutput = Options.InstrProfileOutput;
+ StringRef InstrProfileOutput = Options.InstrProfileOutput;
Constant *RegisterF = M->getFunction(getInstrProfRegFuncsName());
if (!RegisterF && InstrProfileOutput.empty())
More information about the llvm-commits
mailing list