diff options
-rw-r--r-- | llvm/include/llvm/IR/Comdat.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/IR/IntrinsicInst.h | 2 | ||||
-rw-r--r-- | llvm/lib/IR/Comdat.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 18 |
4 files changed, 0 insertions, 24 deletions
diff --git a/llvm/include/llvm/IR/Comdat.h b/llvm/include/llvm/IR/Comdat.h index 10abac1549b..577247f27e2 100644 --- a/llvm/include/llvm/IR/Comdat.h +++ b/llvm/include/llvm/IR/Comdat.h @@ -46,7 +46,6 @@ public: private: friend class Module; Comdat(); - Comdat(SelectionKind SK, StringMapEntry<Comdat> *Name); Comdat(const Comdat &) = delete; // Points to the map in Module. diff --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h index 50e16ce7126..52044e0a0cc 100644 --- a/llvm/include/llvm/IR/IntrinsicInst.h +++ b/llvm/include/llvm/IR/IntrinsicInst.h @@ -75,8 +75,6 @@ namespace llvm { static inline bool classof(const Value *V) { return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); } - - static Value *StripCast(Value *C); }; /// This represents the llvm.dbg.declare instruction. diff --git a/llvm/lib/IR/Comdat.cpp b/llvm/lib/IR/Comdat.cpp index 80715ff40ba..fc1b48d1c19 100644 --- a/llvm/lib/IR/Comdat.cpp +++ b/llvm/lib/IR/Comdat.cpp @@ -15,9 +15,6 @@ #include "llvm/ADT/StringMap.h" using namespace llvm; -Comdat::Comdat(SelectionKind SK, StringMapEntry<Comdat> *Name) - : Name(Name), SK(SK) {} - Comdat::Comdat(Comdat &&C) : Name(C.Name), SK(C.SK) {} Comdat::Comdat() : Name(nullptr), SK(Comdat::Any) {} diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp index ce647c292b5..3f747117b72 100644 --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -32,24 +32,6 @@ using namespace llvm; /// DbgInfoIntrinsic - This is the common base class for debug info intrinsics /// -static Value *CastOperand(Value *C) { - if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) - if (CE->isCast()) - return CE->getOperand(0); - return nullptr; -} - -Value *DbgInfoIntrinsic::StripCast(Value *C) { - if (Value *CO = CastOperand(C)) { - C = StripCast(CO); - } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { - if (GV->hasInitializer()) - if (Value *CO = CastOperand(GV->getInitializer())) - C = StripCast(CO); - } - return dyn_cast<GlobalVariable>(C); -} - Value *DbgInfoIntrinsic::getVariableLocation(bool AllowNullOp) const { Value *Op = getArgOperand(0); if (AllowNullOp && !Op) |