mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Fix getFieldAs() to use the parameter instead of 6.
Add missing DIType constructor, needed by DIVariable::getType(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -100,6 +100,14 @@ DIGlobalVariable::DIGlobalVariable(GlobalVariable *GV)
|
||||
: DIGlobal(GV, dwarf::DW_TAG_variable) {}
|
||||
DIBlock::DIBlock(GlobalVariable *GV)
|
||||
: DIDescriptor(GV, dwarf::DW_TAG_lexical_block) {}
|
||||
// needed by DIVariable::getType()
|
||||
DIType::DIType(GlobalVariable *GV) : DIDescriptor(GV) {
|
||||
if (!GV) return;
|
||||
unsigned tag = getTag();
|
||||
if (tag != dwarf::DW_TAG_base_type && !DIDerivedType::isDerivedType(tag) &&
|
||||
!DICompositeType::isCompositeType(tag))
|
||||
GV = 0;
|
||||
}
|
||||
|
||||
/// isDerivedType - Return true if the specified tag is legal for
|
||||
/// DIDerivedType.
|
||||
|
Reference in New Issue
Block a user