From 43e53ccc0dd730657c2bf0dfdf7a9196e2cfc2ba Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 9 Feb 2015 21:23:34 +0000 Subject: [PATCH] IR: Remove dead code in DITemplate* These are never referenced or filled in. llvm-svn: 228607 --- llvm/include/llvm/IR/DebugInfo.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/llvm/include/llvm/IR/DebugInfo.h b/llvm/include/llvm/IR/DebugInfo.h index b373102..fd8ed81 100644 --- a/llvm/include/llvm/IR/DebugInfo.h +++ b/llvm/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; }; -- 2.7.4