From: Misha Brukman Date: Tue, 27 May 2003 22:29:02 +0000 (+0000) Subject: Cannot output `static' in generated cpp code: results in error. It's already X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b9dd8154b6f0c64c7e6703b11fa5d25e1375a8df;p=oota-llvm.git Cannot output `static' in generated cpp code: results in error. It's already specified as a static member in class definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6370 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/support/tools/TableGen/CodeEmitterGen.cpp b/support/tools/TableGen/CodeEmitterGen.cpp index 90474cf4c02..a73d2914ff6 100644 --- a/support/tools/TableGen/CodeEmitterGen.cpp +++ b/support/tools/TableGen/CodeEmitterGen.cpp @@ -18,7 +18,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) { std::string ClassName = "SparcV9CodeEmitter::"; //const std::string &Namespace = Inst->getValue("Namespace")->getName(); - o << "static unsigned " << ClassName + o << "unsigned " << ClassName << "getBinaryCodeForInstr(MachineInstr &MI) {\n" << " unsigned Value = 0;\n" << " std::cerr << MI;\n" diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index 90474cf4c02..a73d2914ff6 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -18,7 +18,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) { std::string ClassName = "SparcV9CodeEmitter::"; //const std::string &Namespace = Inst->getValue("Namespace")->getName(); - o << "static unsigned " << ClassName + o << "unsigned " << ClassName << "getBinaryCodeForInstr(MachineInstr &MI) {\n" << " unsigned Value = 0;\n" << " std::cerr << MI;\n"