mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 21:20:18 +00:00
Avoid a string copy, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9abf24c5c4
commit
12a672ec61
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user