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

@@ -77,4 +77,13 @@ unsigned MCSymbolELF::getOther() const {
unsigned Other = (getFlags() & (0x3f << ELF_STO_Shift)) >> ELF_STO_Shift;
return Other;
}
void MCSymbolELF::setUsedInReloc() const {
UsedInReloc = true;
}
bool MCSymbolELF::isUsedInReloc() const {
return UsedInReloc;
}
}