From cd32eba67b94c7dc5dde86e14b1330dab85431e9 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 21 Jul 2016 17:50:07 +0000 Subject: Avoid a string copy, NFC llvm-svn: 276310 --- llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') 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()) -- cgit v1.2.3