Avoid a string copy, NFC

llvm-svn: 276310
This commit is contained in:
Vedant Kumar 2016-07-21 17:50:07 +00:00
parent aa1bac22dd
commit cd32eba67b
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ void InstrProfiling::emitUses() {
} }
void InstrProfiling::emitInitialization() { void InstrProfiling::emitInitialization() {
std::string InstrProfileOutput = Options.InstrProfileOutput; StringRef InstrProfileOutput = Options.InstrProfileOutput;
Constant *RegisterF = M->getFunction(getInstrProfRegFuncsName()); Constant *RegisterF = M->getFunction(getInstrProfRegFuncsName());
if (!RegisterF && InstrProfileOutput.empty()) if (!RegisterF && InstrProfileOutput.empty())