[llvm] r287528 - [Sparc] 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:33:06 PST 2016
Author: jacob_hansen
Date: Mon Nov 21 03:33:05 2016
New Revision: 287528
URL: http://llvm.org/viewvc/llvm-project?rev=287528&view=rev
Log:
[Sparc] Use target name instead of namespace as prefix for MCRegisterClasses array
Summary:
For Sparc the namespace (SP) is different from the target name (Sparc),
which causes the name of the array in this declaration to differ from
the name used in the definition.
Patch by Daniel Cederman.
Reviewers: jyknight
Subscribers: llvm-commits, jyknight
Differential Revision: https://reviews.llvm.org/D23650
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=287528&r1=287527&r2=287528&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/RegisterInfoEmitter.cpp Mon Nov 21 03:33:05 2016
@@ -104,7 +104,7 @@ void RegisterInfoEmitter::runEnums(raw_o
OS << "namespace llvm {\n\n";
OS << "class MCRegisterClass;\n"
- << "extern const MCRegisterClass " << Namespace
+ << "extern const MCRegisterClass " << Target.getName()
<< "MCRegisterClasses[];\n\n";
if (!Namespace.empty())
More information about the llvm-commits
mailing list