diff options
author | Filipe Cabecinhas <me@filcab.net> | 2016-05-11 16:38:40 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2016-05-11 16:38:40 +0000 |
commit | 465a5041e938ef1d3d319847d08ab950f1684fa5 (patch) | |
tree | 3ecf02fdf6f735463eca0066017707ce217906d3 /llvm/lib/IR/IntrinsicInst.cpp | |
parent | 3a5ce733ce98b0525bc521ef45e540be18cda859 (diff) | |
download | bcm5719-llvm-465a5041e938ef1d3d319847d08ab950f1684fa5.tar.gz bcm5719-llvm-465a5041e938ef1d3d319847d08ab950f1684fa5.zip |
[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
Diffstat (limited to 'llvm/lib/IR/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
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) |