mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
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:
@@ -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); }
|
||||
|
||||
|
Reference in New Issue
Block a user