From b9dd8154b6f0c64c7e6703b11fa5d25e1375a8df Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 27 May 2003 22:29:02 +0000 Subject: 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 --- utils/TableGen/CodeEmitterGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index 90474cf..a73d291 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" -- cgit v1.1