llvm-6502/lib/MC
Pete Cooper bed96c8d97 Use a SmallString buffer instead of a std::string for debug info path lookup. NFC.
This code appends the filename to the directory then looks that up in a StringMap.  We should be using the existing Twine::toStringRef method instead of Twine::str() as most times we'll succeed in the lookup.

Its possible that we should also consider allowing StringMap to lookup a key using a Twine in addition to a StringRef but that would complicate the code with little known benefit above and beyond this change.

This saves 170k temporary allocations when running llc on the verify_use_list_order bitcode with debug info for x86.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237823 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-20 19:12:14 +00:00
..
MCDisassembler MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
MCParser MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
CMakeLists.txt Move some methods to a new MCInstrDesc.cpp file to allow includes to be trimmed. NFC. 2015-05-15 21:29:43 +00:00
ConstantPools.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
ELFObjectWriter.cpp MC: Use MCSymbol in MCObjectWriter::isWeak(), NFC 2015-05-20 15:10:03 +00:00
LLVMBuild.txt
MachObjectWriter.cpp MC: Use MCSymbol in MachObjectWriter, NFC 2015-05-20 15:16:14 +00:00
Makefile
MCAsmBackend.cpp
MCAsmInfo.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
MCAsmInfoCOFF.cpp [MC] Use LShr for constant evaluation of ">>" on ELF/arm64--darwin. 2015-04-28 01:37:11 +00:00
MCAsmInfoDarwin.cpp [MC] Use LShr for constant evaluation of ">>" on ELF/arm64--darwin. 2015-04-28 01:37:11 +00:00
MCAsmInfoELF.cpp
MCAsmStreamer.cpp MC: Update MCCodeEmitter naming. NFC. 2015-05-15 19:13:16 +00:00
MCAssembler.cpp MC: Add MCSymbolData back to MCAssembler dump 2015-05-20 16:34:36 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp MC: MCCodeGenInfo naming update. NFC. 2015-05-15 19:13:31 +00:00
MCContext.cpp MC: clang-format MCContext. NFC. 2015-05-18 18:43:23 +00:00
MCDwarf.cpp Use a SmallString buffer instead of a std::string for debug info path lookup. NFC. 2015-05-20 19:12:14 +00:00
MCELF.cpp
MCELFObjectTargetWriter.cpp Re-enable target-specific relocation table sorting and use it for Mips 2015-04-14 13:23:34 +00:00
MCELFStreamer.cpp MC: Use MCSymbol in LocalCommon, NFC 2015-05-20 18:25:40 +00:00
MCExpr.cpp MC: Use MCSymbol in MCObjectWriter::isWeak(), NFC 2015-05-20 15:10:03 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp Remove 3 includes from MCInstrDesc.h and explicitly include them where needed 2015-05-15 21:58:42 +00:00
MCLabel.cpp
MCLinkerOptimizationHint.cpp MC: Take MCSymbol in MachObjectWriter::getSymbolAddress(), NFC 2015-05-20 00:02:39 +00:00
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp Respect object format choice on Darwin 2015-05-04 20:03:01 +00:00
MCObjectStreamer.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
MCObjectWriter.cpp MC: Use MCSymbol in MCObjectWriter::isWeak(), NFC 2015-05-20 15:10:03 +00:00
MCRegisterInfo.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp Use a comma after the unique keyword. 2015-04-06 16:34:41 +00:00
MCSectionMachO.cpp Implement unique sections with an unique ID. 2015-04-04 18:02:01 +00:00
MCStreamer.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
MCSubtargetInfo.cpp Reverting r237234, "Use std::bitset for SubtargetFeatures" 2015-05-13 10:28:46 +00:00
MCSymbol.cpp Revert accidentally committed "MC: Allow targets to stop symbol name quoting" 2015-04-23 23:34:51 +00:00
MCSymbolizer.cpp
MCTargetOptions.cpp
MCValue.cpp
MCWin64EH.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
MCWinEH.cpp
StringTableBuilder.cpp
SubtargetFeature.cpp Reverting r237234, "Use std::bitset for SubtargetFeatures" 2015-05-13 10:28:46 +00:00
WinCOFFObjectWriter.cpp MC: Use MCSymbol in MCObjectWriter::isWeak(), NFC 2015-05-20 15:10:03 +00:00
WinCOFFStreamer.cpp MC: Clean up method names in MCContext. 2015-05-18 18:43:14 +00:00
YAML.cpp