Delete unused GlobalIndirectSymbol::getBaseObject overloads

This commit is contained in:
Fangrui Song 2021-09-15 20:44:24 -07:00
parent b1d44e5902
commit 03c8b24ace
1 changed files with 0 additions and 11 deletions

View File

@ -63,17 +63,6 @@ public:
static_cast<const GlobalIndirectSymbol *>(this)->getBaseObject());
}
const GlobalObject *getBaseObject(const DataLayout &DL, APInt &Offset) const {
return dyn_cast<GlobalObject>(
getIndirectSymbol()->stripAndAccumulateInBoundsConstantOffsets(DL,
Offset));
}
GlobalObject *getBaseObject(const DataLayout &DL, APInt &Offset) {
return const_cast<GlobalObject *>(
static_cast<const GlobalIndirectSymbol *>(this)
->getBaseObject(DL, Offset));
}
// Methods for support type inquiry through isa, cast, and dyn_cast:
static bool classof(const Value *V) {
return V->getValueID() == Value::GlobalAliasVal ||