From 465a5041e938ef1d3d319847d08ab950f1684fa5 Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Wed, 11 May 2016 16:38:40 +0000 Subject: [NFC] Remove some dead code: DbgInfoIntrinsic::StripCast() is dead since r79977 The only function that creates Comdat objects seems to be in Module, and always creates them using the default constructor. llvm-svn: 269204 --- llvm/lib/IR/IntrinsicInst.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'llvm/lib/IR/IntrinsicInst.cpp') 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(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(C)) { - if (GV->hasInitializer()) - if (Value *CO = CastOperand(GV->getInitializer())) - C = StripCast(CO); - } - return dyn_cast(C); -} - Value *DbgInfoIntrinsic::getVariableLocation(bool AllowNullOp) const { Value *Op = getArgOperand(0); if (AllowNullOp && !Op) -- cgit v1.2.3