Skip to content

Commit

Permalink
change ppc
Browse files Browse the repository at this point in the history
Signed-off-by: yayanyang <yayanyang@gmail.com>
  • Loading branch information
yayanyang committed Jul 29, 2012
1 parent d164fd8 commit 460cc57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ppc/codegen.cpp
Expand Up @@ -2,7 +2,7 @@
#include <lemon/ppc/errorcode.h>
namespace lemon{namespace ppc{namespace core{

void CxxCodeGen::Generate(const char * macroName,const char * tag,std::ostream & stream,AST & ast)
void CxxCodeGen::Generate(size_t moduleId,const char * tag,std::ostream & stream,AST & ast)
{
stream << "#include <lemonxx/mpl/inttypes.hpp>" << std::endl << std::endl;

Expand All @@ -28,7 +28,7 @@ namespace lemon{namespace ppc{namespace core{

stream << ">" << std::endl;

stream << "\tvoid operator()(Writer *writer,size_t level,const LemonPPCFlag & flag";
stream << "\tvoid operator()(Writer *writer,size_t level,const LemonPPCFlag & flag,const char *";

for(size_t i = 0; i < iter->args - 4; ++ i)
{
Expand All @@ -39,7 +39,7 @@ namespace lemon{namespace ppc{namespace core{

stream << "\t{" << std::endl;

stream << "\t\tlemon::ppc::write_header(writer,level,flag," << iter->args - 4 << ");" << std::endl;
stream << "\t\tlemon::ppc::write_header(writer,level,flag," << moduleId << iter->args - 4 << ");" << std::endl;

for(size_t i = 0; i < iter->args - 4; ++ i)
{
Expand Down
4 changes: 3 additions & 1 deletion ppc/codegen.hpp
Expand Up @@ -17,7 +17,9 @@ namespace lemon{namespace ppc{namespace core{
{
public:

void Generate(const char * macroName,const char * tag,std::ostream & stream,AST & ast);
CxxCodeGen(const char * macroName,const char * assemblyGuid);

void Generate(size_t moduleId,const char * tag,std::ostream & stream,AST & ast);

};

Expand Down

0 comments on commit 460cc57

Please sign in to comment.