diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-20 22:52:54 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-20 22:52:54 +0000 |
commit | 162c800384353b639aa5bc94242e6307dcfae2d3 (patch) | |
tree | cb388dc2125d212b94b8ff6a1c6c3b80d3a0e1ed /include | |
parent | dcb4d349b683d9b52b084c94c9941020ebef4bc2 (diff) |
Debug Info: Swap the 2nd and 3rd parameters to DICompileUnit to match the common DIScope prefix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DebugInfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index dc87c59cc6..c51cfee29c 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -188,12 +188,12 @@ namespace llvm { public: explicit DICompileUnit(const MDNode *N = 0) : DIScope(N) {} - unsigned getLanguage() const { return getUnsignedField(1); } + unsigned getLanguage() const { return getUnsignedField(2); } StringRef getFilename() const { - return getFieldAs<DIFile>(2).getFilename(); + return getFieldAs<DIFile>(1).getFilename(); } StringRef getDirectory() const { - return getFieldAs<DIFile>(2).getDirectory(); + return getFieldAs<DIFile>(1).getDirectory(); } StringRef getProducer() const { return getStringField(3); } |