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)
commitec77d9ad83cfd14517bb534256feb9c5154a636b
treecd8ae7c7f8452d77aaf0bad075f7a2eb06333a46
parent4b77d120643c0b605733818c43864c8f1d79a368
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.

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