mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
The fragment implies the section, don't store both.
This reduces MCSymbol from 64 to 56 bytes on x86_64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include "llvm/MC/MCLinkerOptimizationHint.h"
|
||||
#include "llvm/MC/MCSection.h"
|
||||
#include "llvm/MC/MCSubtargetInfo.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include <algorithm>
|
||||
@@ -910,15 +909,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr) {
|
||||
bool New = !Symbol.isRegistered();
|
||||
if (Created)
|
||||
*Created = New;
|
||||
if (New) {
|
||||
Symbol.setIsRegistered(true);
|
||||
Symbols.push_back(&Symbol);
|
||||
}
|
||||
}
|
||||
void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr);
|
||||
|
||||
ArrayRef<std::string> getFileNames() { return FileNames; }
|
||||
|
||||
|
Reference in New Issue
Block a user