[llvm-commits] [llvm] r134720 - /llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Jul 8 12:32:06 PDT 2011
Author: d0k
Date: Fri Jul 8 14:32:06 2011
New Revision: 134720
URL: http://llvm.org/viewvc/llvm-project?rev=134720&view=rev
Log:
Remove unused copy of UpdateInlinedAtInfo.
Modified:
llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp?rev=134720&r1=134719&r2=134720&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CloneFunction.cpp Fri Jul 8 14:32:06 2011
@@ -342,18 +342,6 @@
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
More information about the llvm-commits
mailing list