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:
Rafael Espindola
2015-06-03 21:30:10 +00:00
parent a41438c5d8
commit 2b9f4dc654
3 changed files with 19 additions and 10 deletions

View File

@@ -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(); }
};
}