public:
DISerializeVisitor(DISerializer &S, std::vector<Constant*> &E)
- : DIVisitor()
- , SR(S)
- , Elements(E)
- {}
+ : DIVisitor(), SR(S), Elements(E) {}
/// Apply - Set the value of each of the fields.
///
public:
DIGetTypesVisitor(DISerializer &S, std::vector<const Type*> &F)
- : DIVisitor()
- , SR(S)
- , Fields(F)
- {}
+ : DIVisitor(), SR(S), Fields(F) {}
/// Apply - Set the value of each of the fields.
///
if (EmptyStructPtrTy) return EmptyStructPtrTy;
// Construct the pointer to empty structure type.
- const StructType *EmptyStructTy =
- StructType::get(std::vector<const Type*>());
+ const StructType *EmptyStructTy = StructType::get(NULL, NULL);
// Construct the pointer to empty structure type.
EmptyStructPtrTy = PointerType::getUnqual(EmptyStructTy);
if (!Ty) {
// Set up fields vector.
std::vector<const Type*> Fields;
+
// Get types of fields.
DIGetTypesVisitor GTAM(*this, Fields);
GTAM.ApplyToFields(DD);
// Set up elements vector
std::vector<Constant*> Elements;
+
// Add fields.
DISerializeVisitor SRAM(*this, Elements);
SRAM.ApplyToFields(DD);