hanchenye-llvm-project/llvm/lib/MC
Sam Clegg 9f3fe42e19 [WebAssembly] Remove debug names from symbol table
Get rid of DEBUG_FUNCTION_NAME symbols. When we actually debug
data, maybe we'll want somewhere to put it... but having a symbol
that just stores the name of another symbol seems odd.
It means you have multiple Symbols with the same name, one
containing the actual function and another containing the name!

Store the names in a vector on the WasmObjectFile when reading
them in. Also stash them on the WasmFunctions themselves.
The names are //not// "symbol names" or aliases or anything,
they're just the name that a debugger should show against the
function body itself. NB. The WasmObjectFile stores them so that
they can be exported in the YAML losslessly, and hence the tests
can be precise.

Enforce that the CODE section has been read in before reading
the "names" section. Requires minor adjustment to some tests.

Patch by Nicholas Wilson!

Differential Revision: https://reviews.llvm.org/D42075

llvm-svn: 322741
2018-01-17 19:28:43 +00:00
..
MCDisassembler
MCParser Reland "Emit Function IDs table for Control Flow Guard" 2018-01-09 23:49:30 +00:00
CMakeLists.txt
ConstantPools.cpp
ELFObjectWriter.cpp
LLVMBuild.txt
MCAsmBackend.cpp
MCAsmInfo.cpp
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoWasm.cpp Remove redundant includes from lib/MC. 2017-12-13 21:30:54 +00:00
MCAsmStreamer.cpp [DWARFv5] CodeGen support for MD5 file checksums 2018-01-12 19:17:50 +00:00
MCAssembler.cpp Use a MCExpr for the size of MCFillFragment. 2018-01-09 22:48:37 +00:00
MCCodeEmitter.cpp
MCCodePadder.cpp
MCCodeView.cpp MC: Remove redundant `SetUsed` arguments in MCSymbol methods 2018-01-12 18:05:40 +00:00
MCContext.cpp [WebAssemlby] MC: Don't write COMDAT symbols as global imports 2018-01-11 20:35:17 +00:00
MCDwarf.cpp [DWARFv5] MC support for MD5 file checksums 2018-01-09 23:31:48 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp
MCExpr.cpp Revert and accidentally committed revert commit 2017-12-09 08:01:28 +00:00
MCFragment.cpp
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachOStreamer.cpp Don't create MCFillFragment directly. 2018-01-09 21:55:10 +00:00
MCMachObjectTargetWriter.cpp
MCNullStreamer.cpp Remove redundant includes from lib/MC. 2017-12-13 21:30:54 +00:00
MCObjectFileInfo.cpp Reland "Emit Function IDs table for Control Flow Guard" 2018-01-09 23:49:30 +00:00
MCObjectStreamer.cpp Use a MCExpr for the size of MCFillFragment. 2018-01-09 22:48:37 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp [MC] Handle unknown literal register numbers in .cfi_* directives 2017-12-01 21:44:27 +00:00
MCSchedule.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCSectionWasm.cpp Remove redundant includes from lib/MC. 2017-12-13 21:30:54 +00:00
MCStreamer.cpp Reland "Emit Function IDs table for Control Flow Guard" 2018-01-09 23:49:30 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp
MCSymbolELF.cpp Remove redundant includes from lib/MC. 2017-12-13 21:30:54 +00:00
MCTargetOptions.cpp
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp Remove redundant includes from lib/MC. 2017-12-13 21:30:54 +00:00
MCWin64EH.cpp Remove redundant includes from lib/MC. 2017-12-13 21:30:54 +00:00
MCWinCOFFStreamer.cpp Reland "Emit Function IDs table for Control Flow Guard" 2018-01-09 23:49:30 +00:00
MCWinEH.cpp
MachObjectWriter.cpp MC: Add support for mach-o build_version 2017-12-14 00:12:46 +00:00
StringTableBuilder.cpp
SubtargetFeature.cpp
WasmObjectWriter.cpp [WebAssembly] Remove debug names from symbol table 2018-01-17 19:28:43 +00:00
WinCOFFObjectWriter.cpp