summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/IR/DebugLoc.h18
-rw-r--r--llvm/lib/IR/DebugLoc.cpp9
2 files changed, 0 insertions, 27 deletions
diff --git a/llvm/include/llvm/IR/DebugLoc.h b/llvm/include/llvm/IR/DebugLoc.h
index 12ab4546451..8f2781304a8 100644
--- a/llvm/include/llvm/IR/DebugLoc.h
+++ b/llvm/include/llvm/IR/DebugLoc.h
@@ -125,24 +125,6 @@ namespace llvm {
/// \brief prints source location /path/to/file.exe:line:col @[inlined at]
void print(raw_ostream &OS) const;
-
- // FIXME: Remove this old API once callers have been updated.
- static DebugLoc getFromDILocation(MDNode *N) { return DebugLoc(N); }
- bool isUnknown() const { return !Loc; }
- MDNode *getScope(const LLVMContext &) const { return getScope(); }
- MDNode *getInlinedAt(const LLVMContext &) const;
- void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA) const;
- void getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA,
- const LLVMContext &) const {
- return getScopeAndInlinedAt(Scope, IA);
- }
- MDNode *getScopeNode() const { return getInlinedAtScope(); }
- MDNode *getScopeNode(const LLVMContext &) const { return getScopeNode(); }
- DebugLoc getFnDebugLoc(const LLVMContext &) const {
- return getFnDebugLoc();
- }
- MDNode *getAsMDNode(LLVMContext &) const { return getAsMDNode(); }
- void dump(const LLVMContext &) const { dump(); }
};
} // end namespace llvm
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp
index 515e0a2b716..5a5f201fe12 100644
--- a/llvm/lib/IR/DebugLoc.cpp
+++ b/llvm/lib/IR/DebugLoc.cpp
@@ -113,12 +113,3 @@ void DebugLoc::print(raw_ostream &OS) const {
OS << " ]";
}
}
-
-// FIXME: Remove this old API once callers have been updated.
-MDNode *DebugLoc::getInlinedAt(const LLVMContext &) const {
- return getInlinedAt();
-}
-void DebugLoc::getScopeAndInlinedAt(MDNode *&Scope, MDNode *&IA) const {
- Scope = getScope();
- IA = getInlinedAt();
-}
OpenPOWER on IntegriCloud