IRGen: Narrow getCGRecordLayout type.

llvm-svn: 99946
This commit is contained in:
Daniel Dunbar 2010-03-30 22:26:12 +00:00
parent 072d0bb247
commit 6915cbe7a2
2 changed files with 2 additions and 2 deletions

View 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);

View 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.