aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-03 00:17:12 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-03 00:17:12 +0000
commit56eb10842f19c43f3970f6f6ba2d8b7dbf4807e9 (patch)
tree2625a1251b0b0dc3c14d9b765055e01fb97197db /include
parent33221d9fcccbb6f41d5664fd0b89c9e6f71a0875 (diff)
downloadexternal_llvm-56eb10842f19c43f3970f6f6ba2d8b7dbf4807e9.zip
external_llvm-56eb10842f19c43f3970f6f6ba2d8b7dbf4807e9.tar.gz
external_llvm-56eb10842f19c43f3970f6f6ba2d8b7dbf4807e9.tar.bz2
This initial code is meant to convert TargetData to use an AbstractTypesUser so
that it doesn't have dangling pointers when abstract types are resolved. This modifies it somewhat to address comments: making the "StructLayoutMap" an anonymous structure, calling "removeAbstractTypeUser" when appropriate, and adding asserts where helpful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetData.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index e1d052e..5ed0f13 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -30,7 +30,6 @@ class Type;
class IntegerType;
class StructType;
class StructLayout;
-class StructLayoutMap;
class GlobalVariable;
class LLVMContext;
@@ -86,7 +85,7 @@ private:
static const TargetAlignElem InvalidAlignmentElem;
// The StructType -> StructLayout map.
- mutable StructLayoutMap *LayoutMap;
+ mutable void *LayoutMap;
//! Set/initialize target alignments
void setAlignment(AlignTypeEnum align_type, unsigned char abi_align,