[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Fri Dec 8 10:07:48 PST 2006
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.211 -> 1.212
---
Log message:
Packed Structures
---
Diffs of the changes: (+12 -1)
Reader.cpp | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletion(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.211 llvm/lib/Bytecode/Reader/Reader.cpp:1.212
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.211 Sun Dec 3 23:23:49 2006
+++ llvm/lib/Bytecode/Reader/Reader.cpp Fri Dec 8 12:06:15 2006
@@ -1192,7 +1192,18 @@
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: {
More information about the llvm-commits
mailing list