[llvm] 03c8b24 - Delete unused GlobalIndirectSymbol::getBaseObject overloads
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 15 20:44:30 PDT 2021
Author: Fangrui Song
Date: 2021-09-15T20:44:24-07:00
New Revision: 03c8b24ace911912892f225cce16498b6f71bf3f
URL: https://github.com/llvm/llvm-project/commit/03c8b24ace911912892f225cce16498b6f71bf3f
DIFF: https://github.com/llvm/llvm-project/commit/03c8b24ace911912892f225cce16498b6f71bf3f.diff
LOG: Delete unused GlobalIndirectSymbol::getBaseObject overloads
Added:
Modified:
llvm/include/llvm/IR/GlobalIndirectSymbol.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/GlobalIndirectSymbol.h b/llvm/include/llvm/IR/GlobalIndirectSymbol.h
index e45c7529885d5..029a4e757df1d 100644
--- a/llvm/include/llvm/IR/GlobalIndirectSymbol.h
+++ b/llvm/include/llvm/IR/GlobalIndirectSymbol.h
@@ -63,17 +63,6 @@ class GlobalIndirectSymbol : public GlobalValue {
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 ||
More information about the llvm-commits
mailing list