summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-20 22:52:54 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-20 22:52:54 +0000
commit162c800384353b639aa5bc94242e6307dcfae2d3 (patch)
treecb388dc2125d212b94b8ff6a1c6c3b80d3a0e1ed /include
parentdcb4d349b683d9b52b084c94c9941020ebef4bc2 (diff)
downloadllvm-162c800384353b639aa5bc94242e6307dcfae2d3.tar.gz
llvm-162c800384353b639aa5bc94242e6307dcfae2d3.tar.bz2
llvm-162c800384353b639aa5bc94242e6307dcfae2d3.tar.xz
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.h6
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); }