diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-03-30 22:26:10 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-30 22:26:10 +0000 |
| commit | 2924ade97ee4228fcf3518d89cd4bd1653236b48 (patch) | |
| tree | 53e249067c4fbabc55cfe2170251dad44a1d2662 /lib/CodeGen/CodeGenTypes.h | |
| parent | f858da63ace0c810b6d6c67b3784b230c7d2417b (diff) | |
| download | clang-2924ade97ee4228fcf3518d89cd4bd1653236b48.tar.gz clang-2924ade97ee4228fcf3518d89cd4bd1653236b48.tar.bz2 clang-2924ade97ee4228fcf3518d89cd4bd1653236b48.tar.xz | |
IRgen: Move CGRecordLayout to its own happy little file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.h')
| -rw-r--r-- | lib/CodeGen/CodeGenTypes.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h index 9a620e4c01..c8bced32d3 100644 --- a/lib/CodeGen/CodeGenTypes.h +++ b/lib/CodeGen/CodeGenTypes.h @@ -52,37 +52,9 @@ namespace clang { typedef CanQual<Type> CanQualType; namespace CodeGen { + class CGRecordLayout; class CodeGenTypes; - /// CGRecordLayout - This class handles struct and union layout info while - /// lowering AST types to LLVM types. - class CGRecordLayout { - CGRecordLayout(); // DO NOT IMPLEMENT - - /// LLVMType - The LLVMType corresponding to this record layout. - const llvm::Type *LLVMType; - - /// ContainsPointerToDataMember - Whether one of the fields in this record - /// layout is a pointer to data member, or a struct that contains pointer to - /// data member. - bool ContainsPointerToDataMember; - - public: - CGRecordLayout(const llvm::Type *T, bool ContainsPointerToDataMember) - : LLVMType(T), ContainsPointerToDataMember(ContainsPointerToDataMember) {} - - /// getLLVMType - Return llvm type associated with this record. - const llvm::Type *getLLVMType() const { - return LLVMType; - } - - /// containsPointerToDataMember - Whether this struct contains pointers to - /// data members. - bool containsPointerToDataMember() const { - return ContainsPointerToDataMember; - } - }; - /// CodeGenTypes - This class organizes the cross-module state that is used /// while lowering AST types to LLVM types. class CodeGenTypes { |
