Make all temporary symbols unnamed.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Jun 2015 12:16:55 +0000 (12:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 19 Jun 2015 12:16:55 +0000 (12:16 +0000)
commit284a750c5ff95a29cd8cc9130d3eb7ec6d25e352
tree38c934be221f58276592baa899f0514b9ac2d46b
parent9fb676a2543434ed0df96649195a0529b23a8dea
Make all temporary symbols unnamed.

What this does is make all symbols that would otherwise start with a .L
(or L on MachO) unnamed.

Some of these symbols still show up in the symbol table, but we can just
make them unnamed.

In order to make sure we produce identical results when going thought assembly,
all .L (not just the compiler produced ones), are now unnamed.

Running llc on llvm-as.opt.bc, the peak memory usage goes from 208.24MB to
205.57MB.

llvm-svn: 240130
25 files changed:
llvm/include/llvm/MC/MCContext.h
llvm/lib/MC/ELFObjectWriter.cpp
llvm/lib/MC/MCContext.cpp
llvm/lib/MC/MachObjectWriter.cpp
llvm/test/CodeGen/SPARC/obj-relocs.ll
llvm/test/MC/ARM/elf-reloc-02.s
llvm/test/MC/ELF/basic-elf-32.s
llvm/test/MC/ELF/compression.s
llvm/test/MC/ELF/discriminator.s
llvm/test/MC/ELF/merge.s
llvm/test/MC/ELF/relocation-386.s
llvm/test/MC/ELF/undef-temp.s [new file with mode: 0644]
llvm/test/MC/ELF/undef.s
llvm/test/MC/ELF/undef2.s [deleted file]
llvm/test/MC/MachO/AArch64/classrefs.s
llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s
llvm/test/MC/MachO/AArch64/ld64-workaround.s
llvm/test/MC/MachO/AArch64/mergeable.s
llvm/test/MC/MachO/AArch64/reloc-crash.s
llvm/test/MC/MachO/x86_64-mergeable.s
llvm/test/MC/MachO/x86_64-symbols.s
llvm/test/MC/Mips/cpsetup.s
llvm/test/MC/Mips/elf-relsym.s
llvm/test/MC/Mips/xgot.s
llvm/test/MC/Sparc/sparc-pic.s