]> granicus.if.org Git - clang/commitdiff
IRGen: Narrow getCGRecordLayout type.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 30 Mar 2010 22:26:12 +0000 (22:26 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 30 Mar 2010 22:26:12 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99946 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/CodeGenTypes.h

index 285d60a70f452c9c99b8fdd4c88c4dcd5d806fa8..2339640d45100bc8bb7608dde0331f72a96fdcaf 100644 (file)
@@ -494,7 +494,7 @@ void CodeGenTypes::addBitFieldInfo(const FieldDecl *FD, unsigned FieldNo,
 
 /// getCGRecordLayout - Return record layout info for the given llvm::Type.
 const CGRecordLayout &
-CodeGenTypes::getCGRecordLayout(const TagDecl *TD) const {
+CodeGenTypes::getCGRecordLayout(const RecordDecl *TD) const {
   const Type *Key = Context.getTagDeclType(TD).getTypePtr();
   llvm::DenseMap<const Type*, CGRecordLayout *>::const_iterator I
     = CGRecordLayouts.find(Key);
index c8bced32d3dcd6c2a1ca5724dad9f3f1d025c19f..1443516b0d799b922f171e669087f6c2a7c27dad 100644 (file)
@@ -148,7 +148,7 @@ public:
   /// and/or incomplete argument types, this will return the opaque type.
   const llvm::Type *GetFunctionTypeForVtable(const CXXMethodDecl *MD);
                                                      
-  const CGRecordLayout &getCGRecordLayout(const TagDecl*) const;
+  const CGRecordLayout &getCGRecordLayout(const RecordDecl*) const;
 
   /// getLLVMFieldNo - Return llvm::StructType element number
   /// that corresponds to the field FD.