diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-15 23:04:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-15 23:04:13 +0000 |
commit | 59b92cec35af49e82e834cbef5384e170e410cbf (patch) | |
tree | bd7e865d14bbdae0a76d29d673bc6663e85ac37d /utils | |
parent | 9222cdeca0b76d250e38ddb9b8615c6791e6dc60 (diff) | |
download | external_llvm-59b92cec35af49e82e834cbef5384e170e410cbf.zip external_llvm-59b92cec35af49e82e834cbef5384e170e410cbf.tar.gz external_llvm-59b92cec35af49e82e834cbef5384e170e410cbf.tar.bz2 |
Remove awareness of isDummyClass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 6dd2d77..3754674 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -62,9 +62,6 @@ 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 OS << " extern TargetRegisterClass *" << Name << "RegisterClass;\n"; @@ -76,6 +73,8 @@ void RegisterInfoEmitter::runHeader(std::ostream &OS) { // RegisterInfoEmitter::run - Main register file description emitter. // void RegisterInfoEmitter::run(std::ostream &OS) { + CodeGenTarget Target; + EmitSourceFileHeader("Register Information Source Fragment", OS); // Start out by emitting each of the register classes... to do this, we build @@ -95,7 +94,6 @@ 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] == '.') { @@ -210,13 +208,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) { OS << " };\n"; // End of register descriptors... OS << "}\n\n"; // End of anonymous namespace... - CodeGenTarget Target; - 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 = &" |