Remove unused copy of UpdateInlinedAtInfo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2011-07-08 19:32:06 +00:00
parent 245f5e8e2a
commit 11b4c952a6

View File

@ -342,18 +342,6 @@ ConstantFoldMappedInstruction(const Instruction *I) {
Ops.size(), TD); 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, /// CloneAndPruneFunctionInto - This works exactly like CloneFunctionInto,
/// except that it does some simple constant prop and DCE on the fly. The /// 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 /// effect of this is to copy significantly less code in cases where (for