mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Ignore dummy register classes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6ef5c860c
commit
c7df109b6c
@ -53,8 +53,11 @@ void RegisterInfoEmitter::runHeader(std::ostream &OS) {
|
||||
|
||||
OS << "namespace " << TargetName << " { // Register classes\n";
|
||||
for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
|
||||
if (RegisterClasses[i]->getValueAsBit("isDummyClass"))
|
||||
continue; // Ignore dummies
|
||||
|
||||
const std::string &Name = RegisterClasses[i]->getName();
|
||||
if (Name.size() < 9 || Name[9] != '.') // Ignore anonymous classes
|
||||
if (Name.size() < 9 || Name[9] != '.') // Ignore anonymous classes
|
||||
OS << " extern TargetRegisterClass *" << Name << "RegisterClass;\n";
|
||||
}
|
||||
OS << "} // end of namespace " << TargetName << "\n\n";
|
||||
@ -82,6 +85,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
|
||||
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
|
||||
Record *RC = RegisterClasses[rc];
|
||||
if (RC->getValueAsBit("isDummyClass")) continue; // Ignore dummies
|
||||
|
||||
std::string Name = RC->getName();
|
||||
if (Name.size() > 9 && Name[9] == '.') {
|
||||
static unsigned AnonCounter = 0;
|
||||
@ -197,6 +202,9 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
|
||||
OS << "namespace " << Target.getName() << " { // Register classes\n";
|
||||
for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
|
||||
if (RegisterClasses[i]->getValueAsBit("isDummyClass"))
|
||||
continue; // Ignore dummies
|
||||
|
||||
const std::string &Name = RegisterClasses[i]->getName();
|
||||
if (Name.size() < 9 || Name[9] != '.') // Ignore anonymous classes
|
||||
OS << " TargetRegisterClass *" << Name << "RegisterClass = &"
|
||||
|
@ -53,8 +53,11 @@ void RegisterInfoEmitter::runHeader(std::ostream &OS) {
|
||||
|
||||
OS << "namespace " << TargetName << " { // Register classes\n";
|
||||
for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
|
||||
if (RegisterClasses[i]->getValueAsBit("isDummyClass"))
|
||||
continue; // Ignore dummies
|
||||
|
||||
const std::string &Name = RegisterClasses[i]->getName();
|
||||
if (Name.size() < 9 || Name[9] != '.') // Ignore anonymous classes
|
||||
if (Name.size() < 9 || Name[9] != '.') // Ignore anonymous classes
|
||||
OS << " extern TargetRegisterClass *" << Name << "RegisterClass;\n";
|
||||
}
|
||||
OS << "} // end of namespace " << TargetName << "\n\n";
|
||||
@ -82,6 +85,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
|
||||
for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
|
||||
Record *RC = RegisterClasses[rc];
|
||||
if (RC->getValueAsBit("isDummyClass")) continue; // Ignore dummies
|
||||
|
||||
std::string Name = RC->getName();
|
||||
if (Name.size() > 9 && Name[9] == '.') {
|
||||
static unsigned AnonCounter = 0;
|
||||
@ -197,6 +202,9 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
|
||||
OS << "namespace " << Target.getName() << " { // Register classes\n";
|
||||
for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
|
||||
if (RegisterClasses[i]->getValueAsBit("isDummyClass"))
|
||||
continue; // Ignore dummies
|
||||
|
||||
const std::string &Name = RegisterClasses[i]->getName();
|
||||
if (Name.size() < 9 || Name[9] != '.') // Ignore anonymous classes
|
||||
OS << " TargetRegisterClass *" << Name << "RegisterClass = &"
|
||||
|
Loading…
x
Reference in New Issue
Block a user