mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Remove unused copy of UpdateInlinedAtInfo.
llvm-svn: 134720
This commit is contained in:
parent
435ca7304c
commit
453e9c4d19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user