mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-10-22 14:03:16 +00:00
Packed Structures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
8894255fc0
commit
38ecbf18eb
10 files changed
+75
-20
No files matched your search
@@ -1192,7 +1192,18 @@ const Type *BytecodeReader::ParseType() {
|
||||
Typ = read_vbr_uint();
|
||||
}
|
||||
|
||||
Result = StructType::get(Elements);
|
||||
Result = StructType::get(Elements, false);
|
||||
break;
|
||||
}
|
||||
case Type::BC_ONLY_PackedStructTyID: {
|
||||
std::vector<const Type*> Elements;
|
||||
unsigned Typ = read_vbr_uint();
|
||||
while (Typ) { // List is terminated by void/0 typeid
|
||||
Elements.push_back(getType(Typ));
|
||||
Typ = read_vbr_uint();
|
||||
}
|
||||
|
||||
Result = StructType::get(Elements, true);
|
||||
break;
|
||||
}
|
||||
case Type::PointerTyID: {
|
||||
|
||||
Reference in new issue
Block a user