diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-10 15:05:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-10 15:05:18 +0000 |
commit | 2b27b88716522807a835813c63993a9349730e3a (patch) | |
tree | c9bb6d87f1033efd02bed7772d9216b5cf9393b8 /utils/TableGen/CodeEmitterGen.cpp | |
parent | f8e6f4f776cbe65d62528adbf961a10cbf129fc3 (diff) |
This was a good idea, but until this does not break the build of
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
Diffstat (limited to 'utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r-- | utils/TableGen/CodeEmitterGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index b2c5138140..2bdac25c49 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<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" |