aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-23 01:01:04 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-23 01:01:04 +0000
commit341bdf8d565f5282779a0ffd2d2b77f3a38b735e (patch)
treecf56da5b1b259862c877b866c8217112d0ba283a /lib/CodeGen/CodeGenTypes.h
parent3075e760ceb73b6fafc2fb4977ad68552d83aef8 (diff)
Remove the PaddingFields member from CGRecordLayout, it wasn't used anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.h')
-rw-r--r--lib/CodeGen/CodeGenTypes.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h
index a30f8e7f3c..530946bb8f 100644
--- a/lib/CodeGen/CodeGenTypes.h
+++ b/lib/CodeGen/CodeGenTypes.h
@@ -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