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
This commit is contained in:
David Blaikie
2013-03-20 22:52:54 +00:00
parent dcb4d349b6
commit 162c800384
43 changed files with 47 additions and 47 deletions

View File

@@ -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); }