Allow an opaque struct type to be specified as the struct

to perform struct-layout into.

Swift SVN r1823
This commit is contained in:
John McCall
2012-05-12 07:19:43 +00:00
parent d98c55f665
commit 48cd78cfef
4 changed files with 36 additions and 10 deletions

View File

@@ -85,7 +85,7 @@ public:
llvm::StructType *FunctionPairTy; /// { i8*, %swift.refcounted* }
llvm::FunctionType *DtorTy; /// size_t (%swift.refcounted*)
llvm::StructType *HeapMetadataStructTy; /// %swift.heapmetadata = type { ... }
llvm::PointerType *HeapMetadataPtrTy;/// %swift.heapmetadata*
llvm::PointerType *HeapMetadataPtrTy;/// %swift.heapmetadata*
Size getPointerSize() const { return PtrSize; }
Alignment getPointerAlignment() const {
@@ -93,10 +93,13 @@ public:
return Alignment(PtrSize.getValue());
}
llvm::StructType *getOpaqueStructTy();
void unimplemented(SourceLoc, StringRef Message);
private:
Size PtrSize;
llvm::StructType *OpaqueStructTy; /// %swift.opaquestruct
//--- Types -----------------------------------------------------------------
public: