mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 21:47:23 +00:00
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287528 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd72811874
commit
6ea9891f93
@ -104,7 +104,7 @@ void RegisterInfoEmitter::runEnums(raw_ostream &OS,
|
||||
OS << "namespace llvm {\n\n";
|
||||
|
||||
OS << "class MCRegisterClass;\n"
|
||||
<< "extern const MCRegisterClass " << Namespace
|
||||
<< "extern const MCRegisterClass " << Target.getName()
|
||||
<< "MCRegisterClasses[];\n\n";
|
||||
|
||||
if (!Namespace.empty())
|
||||
|
Loading…
x
Reference in New Issue
Block a user