diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-20 22:34:33 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-20 22:34:33 +0000 |
commit | 404ecce8903f83271c82e368c834a9697799c296 (patch) | |
tree | 1114a6997cffa839b9b7f09c17e95c5c3123a7d8 /include | |
parent | f74e9bf650d7c40d595d3bb60e3c901e2bccec4b (diff) | |
download | external_llvm-404ecce8903f83271c82e368c834a9697799c296.zip external_llvm-404ecce8903f83271c82e368c834a9697799c296.tar.gz external_llvm-404ecce8903f83271c82e368c834a9697799c296.tar.bz2 |
Remove unused field in DICompileUnit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DebugInfo.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index d664941..dc87c59 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -188,25 +188,25 @@ namespace llvm { public: explicit DICompileUnit(const MDNode *N = 0) : DIScope(N) {} - unsigned getLanguage() const { return getUnsignedField(2); } + unsigned getLanguage() const { return getUnsignedField(1); } StringRef getFilename() const { - return getFieldAs<DIFile>(3).getFilename(); + return getFieldAs<DIFile>(2).getFilename(); } StringRef getDirectory() const { - return getFieldAs<DIFile>(3).getDirectory(); + return getFieldAs<DIFile>(2).getDirectory(); } - StringRef getProducer() const { return getStringField(4); } + StringRef getProducer() const { return getStringField(3); } - bool isOptimized() const { return getUnsignedField(5) != 0; } - StringRef getFlags() const { return getStringField(6); } - unsigned getRunTimeVersion() const { return getUnsignedField(7); } + bool isOptimized() const { return getUnsignedField(4) != 0; } + StringRef getFlags() const { return getStringField(5); } + unsigned getRunTimeVersion() const { return getUnsignedField(6); } DIArray getEnumTypes() const; DIArray getRetainedTypes() const; DIArray getSubprograms() const; DIArray getGlobalVariables() const; - StringRef getSplitDebugFilename() const { return getStringField(12); } + StringRef getSplitDebugFilename() const { return getStringField(11); } /// Verify - Verify that a compile unit is well formed. bool Verify() const; |