aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-06 02:26:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-06 02:26:43 +0000
commitefb6d0dc3eafbcf4f8cd053138bd1abed1dda8d4 (patch)
treed3fa959415c6a94fb909aac0506698a082d414a0 /lib/CodeGen/CodeGenTypes.h
parentc0c0f70cf196513eadc010bf79d1d3cd00750d85 (diff)
Key LLVM types for TagDecl's off of the clang Type, since there is now
a many-to-one relationship between TagDecl's and types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.h')
-rw-r--r--lib/CodeGen/CodeGenTypes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h
index 536e881f8d..150e0d615d 100644
--- a/lib/CodeGen/CodeGenTypes.h
+++ b/lib/CodeGen/CodeGenTypes.h
@@ -84,13 +84,13 @@ class CodeGenTypes {
llvm::SmallVector<std::pair<const PointerLikeType *,
llvm::OpaqueType *>, 8> PointersToResolve;
- llvm::DenseMap<const TagDecl*, llvm::PATypeHolder> TagDeclTypes;
+ llvm::DenseMap<const Type*, llvm::PATypeHolder> TagDeclTypes;
/// CGRecordLayouts - This maps llvm struct type with corresponding
/// record layout info.
/// FIXME : If CGRecordLayout is less than 16 bytes then use
/// inline it in the map.
- llvm::DenseMap<const TagDecl*, CGRecordLayout *> CGRecordLayouts;
+ llvm::DenseMap<const Type*, CGRecordLayout *> CGRecordLayouts;
/// FieldInfo - This maps struct field with corresponding llvm struct type
/// field no. This info is populated by record organizer.