forked from OSchip/llvm-project
Remove the PaddingFields member from CGRecordLayout, it wasn't used anyway.
llvm-svn: 79799
This commit is contained in:
parent
fd90b168ba
commit
beac2bef4d
|
@ -330,5 +330,5 @@ CGRecordLayoutBuilder::ComputeLayout(CodeGenTypes &Types,
|
|||
Types.addBitFieldInfo(Info.FD, Info.FieldNo, Info.Start, Info.Size);
|
||||
}
|
||||
|
||||
return new CGRecordLayout(Ty, llvm::SmallSet<unsigned, 8>());
|
||||
return new CGRecordLayout(Ty);
|
||||
}
|
||||
|
|
|
@ -54,29 +54,16 @@ namespace CodeGen {
|
|||
class CGRecordLayout {
|
||||
CGRecordLayout(); // DO NOT IMPLEMENT
|
||||
public:
|
||||
CGRecordLayout(const llvm::Type *T,
|
||||
const llvm::SmallSet<unsigned, 8> &PF)
|
||||
: STy(T), PaddingFields(PF) {
|
||||
// FIXME : Collect info about fields that requires adjustments
|
||||
// (i.e. fields that do not directly map to llvm struct fields.)
|
||||
}
|
||||
CGRecordLayout(const llvm::Type *T)
|
||||
: STy(T) { }
|
||||
|
||||
/// getLLVMType - Return llvm type associated with this record.
|
||||
const llvm::Type *getLLVMType() const {
|
||||
return STy;
|
||||
}
|
||||
|
||||
bool isPaddingField(unsigned No) const {
|
||||
return PaddingFields.count(No) != 0;
|
||||
}
|
||||
|
||||
unsigned getNumPaddingFields() {
|
||||
return PaddingFields.size();
|
||||
}
|
||||
|
||||
private:
|
||||
const llvm::Type *STy;
|
||||
llvm::SmallSet<unsigned, 8> PaddingFields;
|
||||
};
|
||||
|
||||
/// CodeGenTypes - This class organizes the cross-module state that is used
|
||||
|
|
Loading…
Reference in New Issue