From 660bc91ec4cde9b19652a0ddfc015150d485e090 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Aug 2004 15:05:18 +0000 Subject: [PATCH] This was a good idea, but until this does not break the build of lib/Target/Sparc, we should not use it. llvm-svn: 15603 --- utils/TableGen/CodeEmitterGen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index b2c51381406..2bdac25c49b 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -20,15 +20,15 @@ using namespace llvm; void CodeEmitterGen::run(std::ostream &o) { - CodeGenTarget Target; std::vector 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"