[cfe-commits] r79374 - /cfe/trunk/lib/CodeGen/CGCXX.cpp
Mike Stump
mrs at apple.com
Tue Aug 18 15:04:09 PDT 2009
Author: mrs
Date: Tue Aug 18 17:04:08 2009
New Revision: 79374
URL: http://llvm.org/viewvc/llvm-project?rev=79374&view=rev
Log:
Cleanup.
Modified:
cfe/trunk/lib/CodeGen/CGCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=79374&r1=79373&r2=79374&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Tue Aug 18 17:04:08 2009
@@ -710,6 +710,8 @@
llvm::Constant *rtti;
llvm::LLVMContext &VMContext;
CodeGenModule &CGM; // Per-module state.
+
+ typedef CXXRecordDecl::method_iterator method_iter;
public:
ABIBuilder(std::vector<llvm::Constant *> &meth,
const CXXRecordDecl *c,
@@ -720,11 +722,10 @@
}
void GenerateVcalls(const CXXRecordDecl *RD) {
- typedef CXXRecordDecl::method_iterator meth_iter;
llvm::Constant *m;
// FIXME: audit order
- for (meth_iter mi = RD->method_begin(),
+ for (method_iter mi = RD->method_begin(),
me = RD->method_end(); mi != me; ++mi) {
if (mi->isVirtual()) {
// FIXME: vcall: offset for virtual base for this function
@@ -735,10 +736,9 @@
}
void GenerateMethods(const CXXRecordDecl *RD) {
- typedef CXXRecordDecl::method_iterator meth_iter;
llvm::Constant *m;
- for (meth_iter mi = RD->method_begin(), me = RD->method_end(); mi != me;
+ for (method_iter mi = RD->method_begin(), me = RD->method_end(); mi != me;
++mi) {
if (mi->isVirtual()) {
m = CGM.GetAddrOfFunction(GlobalDecl(*mi));
More information about the cfe-commits
mailing list