diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-07-29 18:50:06 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-07-29 18:50:06 +0000 |
commit | 8a8a629844d26c24dc0147d55a32a937b14b9381 (patch) | |
tree | a7e4cdb2fa12ce22e035080d3357e37009fd7650 /lib/CodeGen/TargetABIInfo.cpp | |
parent | 98a541e80848d3b7d1131237ac04e698faffd151 (diff) |
No longer need to keep base class offsets in the offset
table as it has its own place now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetABIInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetABIInfo.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/TargetABIInfo.cpp b/lib/CodeGen/TargetABIInfo.cpp index 76d75715bd..5c8d5dd230 100644 --- a/lib/CodeGen/TargetABIInfo.cpp +++ b/lib/CodeGen/TargetABIInfo.cpp @@ -723,10 +723,6 @@ void X86_64ABIInfo::classify(QualType Ty, // Reset Lo class, this will be recomputed. Current = NoClass; unsigned idx = 0; - // FIXME. This will probably change when virtual bases are supported. - if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) - idx += CXXRD->getNumBases(); - for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); i != e; ++i, ++idx) { uint64_t Offset = OffsetBase + Layout.getFieldOffset(idx); |