[PATCH] D23650: Use target name instead of namespace as prefix for MCRegisterClasses array

Jacob Baungard Hansen via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 01:43:00 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL287528: [Sparc] Use target name instead of namespace as prefix for MCRegisterClasses… (authored by jacob_hansen).

Changed prior to commit:
  https://reviews.llvm.org/D23650?vs=68498&id=78695#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23650

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


Index: llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
===================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp
@@ -104,7 +104,7 @@
   OS << "namespace llvm {\n\n";
 
   OS << "class MCRegisterClass;\n"
-     << "extern const MCRegisterClass " << Namespace
+     << "extern const MCRegisterClass " << Target.getName()
      << "MCRegisterClasses[];\n\n";
 
   if (!Namespace.empty())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23650.78695.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161121/cc38b75c/attachment.bin>


More information about the llvm-commits mailing list