diff options
author | Mike Stump <mrs@apple.com> | 2009-08-12 23:25:18 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-08-12 23:25:18 +0000 |
commit | 80a0e32d60e4ff7d78f411e73f3e8dea769ed313 (patch) | |
tree | 777337b345531b6fe1a2a2b04e4041c0c891eb79 /lib/CodeGen/CGCXX.cpp | |
parent | 4c3aedd3f1fff57d1906b0cdfa7a9ec81a361b2d (diff) |
Cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 1c95fc313e..5edc1e049c 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -626,14 +626,15 @@ void CodeGenFunction::GenerateVcalls(std::vector<llvm::Constant *> &methods, llvm::Type *Ptr8Ty) { typedef CXXRecordDecl::method_iterator meth_iter; llvm::Constant *m; - for (meth_iter mi = RD->method_begin(), - me = RD->method_end(); mi != me; ++mi) { - if (mi->isVirtual()) { - // FIXME: vcall: offset for virtual base for this function - m = llvm::Constant::getNullValue(Ptr8Ty); - methods.push_back(m); - } + + for (meth_iter mi = RD->method_begin(), + me = RD->method_end(); mi != me; ++mi) { + if (mi->isVirtual()) { + // FIXME: vcall: offset for virtual base for this function + m = llvm::Constant::getNullValue(Ptr8Ty); + methods.push_back(m); } + } } void CodeGenFunction::GenerateMethods(std::vector<llvm::Constant *> &methods, @@ -659,7 +660,6 @@ void CodeGenFunction::GenerateVtableForBase(const CXXRecordDecl *RD, bool isPrimary, bool ForVirtualBase, llvm::SmallSet<const CXXRecordDecl *, 32> &IndirectPrimary) { - typedef CXXRecordDecl::method_iterator meth_iter; llvm::Type *Ptr8Ty; Ptr8Ty = llvm::PointerType::get(llvm::Type::Int8Ty, 0); llvm::Constant *m = llvm::Constant::getNullValue(Ptr8Ty); |