mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
86172ab3d6
commit
b9dd8154b6
@ -18,7 +18,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
|||||||
std::string ClassName = "SparcV9CodeEmitter::";
|
std::string ClassName = "SparcV9CodeEmitter::";
|
||||||
|
|
||||||
//const std::string &Namespace = Inst->getValue("Namespace")->getName();
|
//const std::string &Namespace = Inst->getValue("Namespace")->getName();
|
||||||
o << "static unsigned " << ClassName
|
o << "unsigned " << ClassName
|
||||||
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
|
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
|
||||||
<< " unsigned Value = 0;\n"
|
<< " unsigned Value = 0;\n"
|
||||||
<< " std::cerr << MI;\n"
|
<< " std::cerr << MI;\n"
|
||||||
|
@ -18,7 +18,7 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
|
|||||||
std::string ClassName = "SparcV9CodeEmitter::";
|
std::string ClassName = "SparcV9CodeEmitter::";
|
||||||
|
|
||||||
//const std::string &Namespace = Inst->getValue("Namespace")->getName();
|
//const std::string &Namespace = Inst->getValue("Namespace")->getName();
|
||||||
o << "static unsigned " << ClassName
|
o << "unsigned " << ClassName
|
||||||
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
|
<< "getBinaryCodeForInstr(MachineInstr &MI) {\n"
|
||||||
<< " unsigned Value = 0;\n"
|
<< " unsigned Value = 0;\n"
|
||||||
<< " std::cerr << MI;\n"
|
<< " std::cerr << MI;\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user