Cleanup.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79374 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp
index 7355846..ecde2ad 100644
--- a/lib/CodeGen/CGCXX.cpp
+++ b/lib/CodeGen/CGCXX.cpp
@@ -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));