mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Bring r240130 back.
Now that pr23900 is fixed, we can bring it back with no changes. Original message: 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@240302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -208,8 +208,7 @@ namespace llvm {
|
||||
|
||||
MCSymbol *createSymbolImpl(const StringMapEntry<bool> *Name,
|
||||
bool CanBeUnnamed);
|
||||
MCSymbol *createSymbol(StringRef Name, bool AlwaysAddSuffix,
|
||||
bool IsTemporary);
|
||||
MCSymbol *createSymbol(StringRef Name, bool AlwaysAddSuffix);
|
||||
|
||||
MCSymbol *getOrCreateDirectionalLocalSymbol(unsigned LocalLabelVal,
|
||||
unsigned Instance);
|
||||
@@ -249,10 +248,9 @@ namespace llvm {
|
||||
|
||||
/// Create and return a new assembler temporary symbol with a unique but
|
||||
/// unspecified name.
|
||||
MCSymbol *createTempSymbol(bool CanBeUnnamed = true);
|
||||
MCSymbol *createTempSymbol();
|
||||
|
||||
MCSymbol *createTempSymbol(const Twine &Name, bool AlwaysAddSuffix,
|
||||
bool CanBeUnnamed = true);
|
||||
MCSymbol *createTempSymbol(const Twine &Name, bool AlwaysAddSuffix);
|
||||
|
||||
/// Create the definition of a directional local symbol for numbered label
|
||||
/// (used for "1:" definitions).
|
||||
|
||||
Reference in New Issue
Block a user