diff --git a/llvm/include/llvm/IR/DebugLoc.h b/llvm/include/llvm/IR/DebugLoc.h index 12ab45464511..8f2781304a81 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 515e0a2b7161..5a5f201fe121 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(); -}