[llvm-branch-commits] [llvm] 41c3b27 - [IR] Delete deprecated DebugLoc::get
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 15 14:57:21 PST 2020
Author: Fangrui Song
Date: 2020-12-15T14:53:12-08:00
New Revision: 41c3b271399229976d9885233db79ebbbe0383c6
URL: https://github.com/llvm/llvm-project/commit/41c3b271399229976d9885233db79ebbbe0383c6
DIFF: https://github.com/llvm/llvm-project/commit/41c3b271399229976d9885233db79ebbbe0383c6.diff
LOG: [IR] Delete deprecated DebugLoc::get
Added:
Modified:
llvm/include/llvm/IR/DebugLoc.h
llvm/lib/IR/DebugLoc.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/DebugLoc.h b/llvm/include/llvm/IR/DebugLoc.h
index 4914d733fe0d..36b5c12f4ba7 100644
--- a/llvm/include/llvm/IR/DebugLoc.h
+++ b/llvm/include/llvm/IR/DebugLoc.h
@@ -68,18 +68,6 @@ namespace llvm {
/// Check whether this has a trivial destructor.
bool hasTrivialDestructor() const { return Loc.hasTrivialDestructor(); }
- /// Create a new DebugLoc.
- ///
- /// Create a new DebugLoc at the specified line/col and scope/inline. This
- /// forwards to \a DILocation::get().
- ///
- /// If \c !Scope, returns a default-constructed \a DebugLoc.
- ///
- /// FIXME: Remove this. Users should use DILocation::get().
- static DebugLoc get(unsigned Line, unsigned Col, const MDNode *Scope,
- const MDNode *InlinedAt = nullptr,
- bool ImplicitCode = false);
-
enum { ReplaceLastInlinedAt = true };
/// Rebuild the entire inlined-at chain for this instruction so that the top of
/// the chain now is inlined-at the new call site.
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp
index 88f57111ff76..1aba5bf664c4 100644
--- a/llvm/lib/IR/DebugLoc.cpp
+++ b/llvm/lib/IR/DebugLoc.cpp
@@ -68,17 +68,6 @@ void DebugLoc::setImplicitCode(bool ImplicitCode) {
}
}
-DebugLoc DebugLoc::get(unsigned Line, unsigned Col, const MDNode *Scope,
- const MDNode *InlinedAt, bool ImplicitCode) {
- // If no scope is available, this is an unknown location.
- if (!Scope)
- return DebugLoc();
-
- return DILocation::get(Scope->getContext(), Line, Col,
- const_cast<MDNode *>(Scope),
- const_cast<MDNode *>(InlinedAt), ImplicitCode);
-}
-
DebugLoc DebugLoc::appendInlinedAt(const DebugLoc &DL, DILocation *InlinedAt,
LLVMContext &Ctx,
DenseMap<const MDNode *, MDNode *> &Cache,
More information about the llvm-branch-commits
mailing list