[llvm] r246404 - [dsymutil] Do not construct a StringRef from a std::string temporary
Frederic Riss via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 30 17:49:35 PDT 2015
Author: friss
Date: Sun Aug 30 19:49:34 2015
New Revision: 246404
URL: http://llvm.org/viewvc/llvm-project?rev=246404&view=rev
Log:
[dsymutil] Do not construct a StringRef from a std::string temporary
Modified:
llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp
Modified: llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp?rev=246404&r1=246403&r2=246404&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp (original)
+++ llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp Sun Aug 30 19:49:34 2015
@@ -271,8 +271,7 @@ void MachODebugMapParser::dumpOneBinaryS
MainBinaryStrings = MainBinary.getStringTableData();
raw_ostream &OS(llvm::outs());
- StringRef ArchName = getArchName(MainBinary);
- dumpSymTabHeader(OS, ArchName);
+ dumpSymTabHeader(OS, getArchName(MainBinary));
uint64_t Idx = 0;
for (const SymbolRef &Symbol : MainBinary.symbols()) {
const DataRefImpl &DRI = Symbol.getRawDataRefImpl();
More information about the llvm-commits
mailing list