diff options
author | Vedant Kumar <vsk@apple.com> | 2016-07-21 17:50:07 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-07-21 17:50:07 +0000 |
commit | cd32eba67b94c7dc5dde86e14b1330dab85431e9 (patch) | |
tree | 4142292e09a75aeafd71d4182278f0688e3cc7d1 /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | |
parent | aa1bac22dd34b1c46d32d3f282c8875d3f7d8ee9 (diff) | |
download | bcm5719-llvm-cd32eba67b94c7dc5dde86e14b1330dab85431e9.tar.gz bcm5719-llvm-cd32eba67b94c7dc5dde86e14b1330dab85431e9.zip |
Avoid a string copy, NFC
llvm-svn: 276310
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index b11c6be696f..0a06ce346bd 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -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()) |