mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Record in a MCSymbolELF if it has been used in a relocation.
No functionality change, just saves an on the side map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238979 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,6 +18,7 @@ class MCSymbolELF : public MCSymbol {
|
||||
const MCExpr *SymbolSize = nullptr;
|
||||
|
||||
mutable unsigned BindingSet : 1;
|
||||
mutable unsigned UsedInReloc : 1;
|
||||
|
||||
public:
|
||||
MCSymbolELF(const StringMapEntry<bool> *Name, bool isTemporary)
|
||||
@@ -40,6 +41,9 @@ public:
|
||||
|
||||
bool isBindingSet() const { return BindingSet; }
|
||||
|
||||
void setUsedInReloc() const;
|
||||
bool isUsedInReloc() const;
|
||||
|
||||
static bool classof(const MCSymbol *S) { return S->isELF(); }
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user