return STy;
}
- /// Clear private data so that this object can be reused.
- void clear();
private:
CodeGenTypes &CGT;
llvm::Type *STy;
&& "Expected RecordDecl in RecordTypesToResolve");
RecordTypesToResolve.erase(OpaqueI);
- RO.clear();
} else if (TD->getKind() == Decl::Union) {
const RecordDecl *RD = cast<const RecordDecl>(TD);
// Just use the largest element of the union, breaking ties with the
RecordLayoutInfo *RLI = new RecordLayoutInfo(RO.getLLVMType());
ResultType = RLI->getLLVMType();
RecordLayouts[ResultType] = RLI;
- RO.clear();
} else {
std::vector<const llvm::Type*> Fields;
ResultType = llvm::StructType::get(Fields);
STy = llvm::StructType::get(Fields);
}
-/// Clear private data so that this object can be reused.
-void RecordOrganizer::clear() {
- STy = NULL;
- FieldDecls.clear();
-}