forked from OSchip/llvm-project
[IR] Delete unused ReplaceLast in DebugLoc::appendInlineAt
Not used after r304488
This commit is contained in:
parent
8278fcaef4
commit
d466e10ab1
|
@ -72,11 +72,9 @@ namespace llvm {
|
|||
/// Rebuild the entire inlined-at chain for this instruction so that the top of
|
||||
/// the chain now is inlined-at the new call site.
|
||||
/// \param InlinedAt The new outermost inlined-at in the chain.
|
||||
/// \param ReplaceLast Replace the last location in the inlined-at chain.
|
||||
static DebugLoc appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt,
|
||||
LLVMContext &Ctx,
|
||||
DenseMap<const MDNode *, MDNode *> &Cache,
|
||||
bool ReplaceLast = false);
|
||||
DenseMap<const MDNode *, MDNode *> &Cache);
|
||||
|
||||
unsigned getLine() const;
|
||||
unsigned getCol() const;
|
||||
|
|
|
@ -70,8 +70,7 @@ void DebugLoc::setImplicitCode(bool ImplicitCode) {
|
|||
|
||||
DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt,
|
||||
LLVMContext &Ctx,
|
||||
DenseMap<const MDNode *, MDNode *> &Cache,
|
||||
bool ReplaceLast) {
|
||||
DenseMap<const MDNode *, MDNode *> &Cache) {
|
||||
SmallVector<DILocation *, 3> InlinedAtLocations;
|
||||
DILocation *Last = InlinedAt;
|
||||
DILocation *CurInlinedAt = DL;
|
||||
|
@ -84,8 +83,6 @@ DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt,
|
|||
break;
|
||||
}
|
||||
|
||||
if (ReplaceLast && !IA->getInlinedAt())
|
||||
break;
|
||||
InlinedAtLocations.push_back(IA);
|
||||
CurInlinedAt = IA;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue