[llvm-commits] [llvm] r155270 - /llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp

Craig Topper craig.topper at gmail.com
Fri Apr 20 18:49:25 PDT 2012


Author: ctopper
Date: Fri Apr 20 20:49:25 2012
New Revision: 155270

URL: http://llvm.org/viewvc/llvm-project?rev=155270&view=rev
Log:
Remove 'XXXRegisterClass' from tablegen output. Targets should use '&XXXRegClass' instead.

Modified:
    llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp

Modified: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp?rev=155270&r1=155269&r2=155270&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Fri Apr 20 20:49:25 2012
@@ -700,9 +700,6 @@
 
       // Output the extern for the instance.
       OS << "  extern const TargetRegisterClass " << Name << "RegClass;\n";
-      // Output the extern for the pointer to the instance (should remove).
-      OS << "  static const TargetRegisterClass * const " << Name
-         << "RegisterClass = &" << Name << "RegClass;\n";
     }
     OS << "} // end of namespace " << TargetName << "\n\n";
   }





More information about the llvm-commits mailing list