[llvm-commits] CVS: llvm/utils/TableGen/CodeEmitterGen.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 10 08:05:31 PDT 2004
Changes in directory llvm/utils/TableGen:
CodeEmitterGen.cpp updated: 1.33 -> 1.34
---
Log message:
This was a good idea, but until this does not break the build of
lib/Target/Sparc, we should not use it.
---
Diffs of the changes: (+3 -3)
Index: llvm/utils/TableGen/CodeEmitterGen.cpp
diff -u llvm/utils/TableGen/CodeEmitterGen.cpp:1.33 llvm/utils/TableGen/CodeEmitterGen.cpp:1.34
--- llvm/utils/TableGen/CodeEmitterGen.cpp:1.33 Mon Aug 9 14:10:43 2004
+++ llvm/utils/TableGen/CodeEmitterGen.cpp Tue Aug 10 10:05:18 2004
@@ -20,15 +20,15 @@
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"
More information about the llvm-commits
mailing list