mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
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
This commit is contained in:
@ -565,7 +565,8 @@ void MachObjectWriter::computeSymbolTable(
|
||||
|
||||
MachSymbolData MSD;
|
||||
MSD.Symbol = &Symbol;
|
||||
MSD.StringIndex = StringTable.getOffset(Symbol.getName());
|
||||
StringRef Name = Symbol.getName();
|
||||
MSD.StringIndex = Name.empty() ? 0 : StringTable.getOffset(Name);
|
||||
|
||||
if (Symbol.isAbsolute()) {
|
||||
MSD.SectionIndex = 0;
|
||||
|
Reference in New Issue
Block a user