1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

IR: Remove dead code in DITemplate*

These are never referenced or filled in.

llvm-svn: 228607
This commit is contained in:
Duncan P. N. Exon Smith 2015-02-09 21:23:34 +00:00
parent 0828e3cd51
commit c4219c892a

View File

@ -722,15 +722,9 @@ public:
: DIDescriptor(N) {}
StringRef getName() const { return getHeaderField(1); }
unsigned getLineNumber() const { return getHeaderFieldAs<unsigned>(2); }
unsigned getColumnNumber() const { return getHeaderFieldAs<unsigned>(3); }
DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(1); }
DITypeRef getType() const { return getFieldAs<DITypeRef>(2); }
StringRef getFilename() const { return getFieldAs<DIFile>(3).getFilename(); }
StringRef getDirectory() const {
return getFieldAs<DIFile>(3).getDirectory();
}
bool Verify() const;
};
@ -741,16 +735,10 @@ public:
: DIDescriptor(N) {}
StringRef getName() const { return getHeaderField(1); }
unsigned getLineNumber() const { return getHeaderFieldAs<unsigned>(2); }
unsigned getColumnNumber() const { return getHeaderFieldAs<unsigned>(3); }
DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(1); }
DITypeRef getType() const { return getFieldAs<DITypeRef>(2); }
Metadata *getValue() const;
StringRef getFilename() const { return getFieldAs<DIFile>(4).getFilename(); }
StringRef getDirectory() const {
return getFieldAs<DIFile>(4).getDirectory();
}
bool Verify() const;
};