Skip to content

Commit 41c3b27

Browse files
committed
[IR] Delete deprecated DebugLoc::get
1 parent a5a14cb commit 41c3b27

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

llvm/include/llvm/IR/DebugLoc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,6 @@ namespace llvm {
6868
/// Check whether this has a trivial destructor.
6969
bool hasTrivialDestructor() const { return Loc.hasTrivialDestructor(); }
7070

71-
/// Create a new DebugLoc.
72-
///
73-
/// Create a new DebugLoc at the specified line/col and scope/inline. This
74-
/// forwards to \a DILocation::get().
75-
///
76-
/// If \c !Scope, returns a default-constructed \a DebugLoc.
77-
///
78-
/// FIXME: Remove this. Users should use DILocation::get().
79-
static DebugLoc get(unsigned Line, unsigned Col, const MDNode *Scope,
80-
const MDNode *InlinedAt = nullptr,
81-
bool ImplicitCode = false);
82-
8371
enum { ReplaceLastInlinedAt = true };
8472
/// Rebuild the entire inlined-at chain for this instruction so that the top of
8573
/// the chain now is inlined-at the new call site.

llvm/lib/IR/DebugLoc.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,6 @@ void DebugLoc::setImplicitCode(bool ImplicitCode) {
6868
}
6969
}
7070

71-
DebugLoc DebugLoc::get(unsigned Line, unsigned Col, const MDNode *Scope,
72-
const MDNode *InlinedAt, bool ImplicitCode) {
73-
// If no scope is available, this is an unknown location.
74-
if (!Scope)
75-
return DebugLoc();
76-
77-
return DILocation::get(Scope->getContext(), Line, Col,
78-
const_cast<MDNode *>(Scope),
79-
const_cast<MDNode *>(InlinedAt), ImplicitCode);
80-
}
81-
8271
DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt,
8372
LLVMContext &Ctx,
8473
DenseMap<const MDNode *, MDNode *> &Cache,

0 commit comments

Comments
 (0)