diff --git a/include/llvm/IR/DebugInfo.h b/include/llvm/IR/DebugInfo.h index b3731024881..fd8ed81865a 100644 --- a/include/llvm/IR/DebugInfo.h +++ b/include/llvm/IR/DebugInfo.h @@ -722,15 +722,9 @@ public: : DIDescriptor(N) {} StringRef getName() const { return getHeaderField(1); } - unsigned getLineNumber() const { return getHeaderFieldAs(2); } - unsigned getColumnNumber() const { return getHeaderFieldAs(3); } DIScopeRef getContext() const { return getFieldAs(1); } DITypeRef getType() const { return getFieldAs(2); } - StringRef getFilename() const { return getFieldAs(3).getFilename(); } - StringRef getDirectory() const { - return getFieldAs(3).getDirectory(); - } bool Verify() const; }; @@ -741,16 +735,10 @@ public: : DIDescriptor(N) {} StringRef getName() const { return getHeaderField(1); } - unsigned getLineNumber() const { return getHeaderFieldAs(2); } - unsigned getColumnNumber() const { return getHeaderFieldAs(3); } DIScopeRef getContext() const { return getFieldAs(1); } DITypeRef getType() const { return getFieldAs(2); } Metadata *getValue() const; - StringRef getFilename() const { return getFieldAs(4).getFilename(); } - StringRef getDirectory() const { - return getFieldAs(4).getDirectory(); - } bool Verify() const; };