mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-28 16:28:58 +00:00
[dsymutil] Do not construct a StringRef from a std::string temporary
llvm-svn: 246404
This commit is contained in:
parent
e4c25bb014
commit
b447bcabea
@ -271,8 +271,7 @@ void MachODebugMapParser::dumpOneBinaryStab(const MachOObjectFile &MainBinary,
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user