summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-07-08 19:32:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-07-08 19:32:06 +0000
commit6a24f9487a95bf3b1c5abe963c0af230767469d1 (patch)
tree17f643ed1385f77fe7470ac29e492017fd8b63c6 /llvm/lib
parentdbfb29d6c0be54ddedeee0af3d8b94f7c2fa40be (diff)
downloadbcm5719-llvm-6a24f9487a95bf3b1c5abe963c0af230767469d1.tar.gz
bcm5719-llvm-6a24f9487a95bf3b1c5abe963c0af230767469d1.zip
Remove unused copy of UpdateInlinedAtInfo.
llvm-svn: 134720
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 169befb58dd..98c9f68f3ec 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -342,18 +342,6 @@ ConstantFoldMappedInstruction(const Instruction *I) {
Ops.size(), TD);
}
-static DebugLoc
-UpdateInlinedAtInfo(const DebugLoc &InsnDL, const DebugLoc &TheCallDL,
- LLVMContext &Ctx) {
- DebugLoc NewLoc = TheCallDL;
- if (MDNode *IA = InsnDL.getInlinedAt(Ctx))
- NewLoc = UpdateInlinedAtInfo(DebugLoc::getFromDILocation(IA), TheCallDL,
- Ctx);
-
- return DebugLoc::get(InsnDL.getLine(), InsnDL.getCol(),
- InsnDL.getScope(Ctx), NewLoc.getAsMDNode(Ctx));
-}
-
/// CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto,
/// except that it does some simple constant prop and DCE on the fly. The
/// effect of this is to copy significantly less code in cases where (for
OpenPOWER on IntegriCloud