This was a good idea, but until this does not break the build of
authorChris Lattner <sabre@nondot.org>
Tue, 10 Aug 2004 15:05:18 +0000 (15:05 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 10 Aug 2004 15:05:18 +0000 (15:05 +0000)
lib/Target/Sparc, we should not use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15603 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeEmitterGen.cpp

index b2c5138140665615b3930c7d80828c4a1f60a906..2bdac25c49b3c5e613e8dd558b6e86a5b175e757 100644 (file)
 using namespace llvm;
 
 void CodeEmitterGen::run(std::ostream &o) {
-  CodeGenTarget Target;
   std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction");
 
   EmitSourceFileHeader("Machine Code Emitter", o);
 
-  std::string Namespace = Insts[0]->getValueAsString("Namespace") + "::";
+  std::string Namespace = "V9::";
+  std::string ClassName = "SparcV9CodeEmitter::";
 
   //const std::string &Namespace = Inst->getValue("Namespace")->getName();
-  o << "unsigned " << Target.getName() << "CodeEmitter::"
+  o << "unsigned " << ClassName
     << "getBinaryCodeForInstr(MachineInstr &MI) {\n"
     << "  unsigned Value = 0;\n"
     << "  DEBUG(std::cerr << MI);\n"