mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
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:
parent
245f5e8e2a
commit
11b4c952a6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user