[cfe-commits] r79799 - in /cfe/trunk/lib/CodeGen: CGRecordLayoutBuilder.cpp CodeGenTypes.h
Anders Carlsson
andersca at mac.com
Sat Aug 22 18:01:04 PDT 2009
Author: andersca
Date: Sat Aug 22 20:01:04 2009
New Revision: 79799
URL: http://llvm.org/viewvc/llvm-project?rev=79799&view=rev
Log:
Remove the PaddingFields member from CGRecordLayout, it wasn't used anyway.
Modified:
cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
cfe/trunk/lib/CodeGen/CodeGenTypes.h
Modified: cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp?rev=79799&r1=79798&r2=79799&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Sat Aug 22 20:01:04 2009
@@ -330,5 +330,5 @@
Types.addBitFieldInfo(Info.FD, Info.FieldNo, Info.Start, Info.Size);
}
- return new CGRecordLayout(Ty, llvm::SmallSet<unsigned, 8>());
+ return new CGRecordLayout(Ty);
}
Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.h?rev=79799&r1=79798&r2=79799&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.h Sat Aug 22 20:01:04 2009
@@ -54,29 +54,16 @@
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
More information about the cfe-commits
mailing list