summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-09-05 09:10:58 +0000
committerMike Stump <mrs@apple.com>2009-09-05 09:10:58 +0000
commit69bbd6ce847c9a4a7a18ef507535878fd5e8f7e4 (patch)
tree6d7112366ee20de9110cbc7327ce0a4ec0aaea63 /clang/lib/CodeGen/CGCXX.cpp
parent8691eecb9181078843f73b0ff323cdcba860f0c9 (diff)
downloadbcm5719-llvm-69bbd6ce847c9a4a7a18ef507535878fd5e8f7e4.tar.gz
bcm5719-llvm-69bbd6ce847c9a4a7a18ef507535878fd5e8f7e4.zip
Cleanups.
llvm-svn: 81077
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index ed4bd4b0735..1dbc0a13cae 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/lib/CodeGen/CGCXX.cpp
@@ -1028,7 +1028,7 @@ public:
uint64_t o = Offset + Layout.getBaseClassOffset(Base);
StartNewTable();
Index_t AP;
- AP = GenerateVtableForBase(Base, true, MorallyVirtual, o, false);
+ AP = GenerateVtableForBase(Base, MorallyVirtual, o, false);
OverrideMethods(RD, AP, MorallyVirtual, o);
InstallThunks(AP);
}
@@ -1096,7 +1096,7 @@ public:
AddMethods(RD, MorallyVirtual, Offset);
}
- int64_t GenerateVtableForBase(const CXXRecordDecl *RD, bool forPrimary,
+ int64_t GenerateVtableForBase(const CXXRecordDecl *RD,
bool MorallyVirtual, int64_t Offset,
bool ForVirtualBase) {
if (!RD->isDynamicClass())
@@ -1137,7 +1137,7 @@ public:
StartNewTable();
int64_t BaseOffset = BLayout.getVBaseClassOffset(Base);
Index_t AP;
- AP = GenerateVtableForBase(Base, false, true, BaseOffset, true);
+ AP = GenerateVtableForBase(Base, true, BaseOffset, true);
OverrideMethods(RD, AP, true, BaseOffset);
InstallThunks(AP);
}
@@ -1171,7 +1171,7 @@ public:
if (I == IndexFor.end()) {
std::vector<llvm::Constant *> methods;
VtableBuilder b(methods, RD, CGM);
- b.GenerateVtableForBase(RD, true, false, 0, false);
+ b.GenerateVtableForBase(RD, false, 0, false);
b.GenerateVtableForVBases(RD);
register_index(RD, b.getIndex());
I = IndexFor.find(RD);
@@ -1199,7 +1199,7 @@ llvm::Value *CodeGenFunction::GenerateVtable(const CXXRecordDecl *RD) {
VtableBuilder b(methods, RD, CGM);
// First comes the vtables for all the non-virtual bases...
- Offset = b.GenerateVtableForBase(RD, true, false, 0, false);
+ Offset = b.GenerateVtableForBase(RD, false, 0, false);
// then the vtables for all the virtual bases.
b.GenerateVtableForVBases(RD);
OpenPOWER on IntegriCloud