mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Move the DIFile operand to DITypes from the 4th operand to the 2nd.
This is another step along the way to making all DIScopes have a common prefix which can be added to in a general manner to support using directives (DW_TAG_imported_module). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -241,9 +241,8 @@ namespace llvm {
|
||||
explicit DIType(const MDNode *N);
|
||||
explicit DIType() {}
|
||||
|
||||
DIScope getContext() const { return getFieldAs<DIScope>(1); }
|
||||
StringRef getName() const { return getStringField(2); }
|
||||
DIFile getFile() const { return getFieldAs<DIFile>(3); }
|
||||
DIScope getContext() const { return getFieldAs<DIScope>(2); }
|
||||
StringRef getName() const { return getStringField(3); }
|
||||
unsigned getLineNumber() const { return getUnsignedField(4); }
|
||||
uint64_t getSizeInBits() const { return getUInt64Field(5); }
|
||||
uint64_t getAlignInBits() const { return getUInt64Field(6); }
|
||||
@@ -289,10 +288,10 @@ namespace llvm {
|
||||
return DbgNode && (isBasicType() || isDerivedType() || isCompositeType());
|
||||
}
|
||||
StringRef getDirectory() const {
|
||||
return getFieldAs<DIFile>(3).getDirectory();
|
||||
return getFieldAs<DIFile>(1).getDirectory();
|
||||
}
|
||||
StringRef getFilename() const {
|
||||
return getFieldAs<DIFile>(3).getFilename();
|
||||
return getFieldAs<DIFile>(1).getFilename();
|
||||
}
|
||||
|
||||
/// isUnsignedDIType - Return true if type encoding is unsigned.
|
||||
|
||||
Reference in New Issue
Block a user