Remove 'XXXRegisterClass' from tablegen output. Targets should use '&XXXRegClass...
authorCraig Topper <craig.topper@gmail.com>
Sat, 21 Apr 2012 01:49:25 +0000 (01:49 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 21 Apr 2012 01:49:25 +0000 (01:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155270 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/RegisterInfoEmitter.cpp

index 29984b855754b2946b427bdc9ecfdc2444920937..8fe582cd21f6da68bdf73740ff0a4f86116df5ff 100644 (file)
@@ -700,9 +700,6 @@ RegisterInfoEmitter::runTargetHeader(raw_ostream &OS, CodeGenTarget &Target,
 
       // 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";
   }