diff --git a/include/llvm/IR/DebugLoc.h b/include/llvm/IR/DebugLoc.h index 12ab4546451..8f2781304a8 100644 --- a/include/llvm/IR/DebugLoc.h +++ b/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/lib/IR/DebugLoc.cpp b/lib/IR/DebugLoc.cpp index 515e0a2b716..5a5f201fe12 100644 --- a/lib/IR/DebugLoc.cpp +++ b/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(); -}