From 814f2c24f6dc75ec3e7fc9704374a3dcc6a6e450 Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Mon, 23 Feb 2015 12:51:18 +0100 Subject: [PATCH] Removed typedef stuff from 2006 Removed compiler noise from 2014 --- compiler/2006/C_CodeGen.jrag | 39 ------------------------------------ compiler/2014/C_CodeGen.jrag | 1 - 2 files changed, 40 deletions(-) diff --git a/compiler/2006/C_CodeGen.jrag b/compiler/2006/C_CodeGen.jrag index 26346d4..3d82bcd 100644 --- a/compiler/2006/C_CodeGen.jrag +++ b/compiler/2006/C_CodeGen.jrag @@ -1143,9 +1143,6 @@ aspect C_Encoder { env.println(")"); env.println("{"); env.indent(); - C_emitUserTypeDeps(env, null, false); //XXX HERE BE DRAGONS - //currently set to false to turn off - //outputting of code env.println("return labcomm"+env.verStr+"_internal_encoder_register("); env.indent(); env.println("e,"); @@ -1196,42 +1193,6 @@ aspect C_EncoderIoctl { } -aspect C_TypeDependencies { - public void Decl.C_emitUserTypeDeps(C_env env, String via, boolean outputCode) { - if( hasDependencies() ) { - Iterator<Decl> it = type_dependencies().iterator(); - while(it.hasNext()) { - Decl t = it.next(); - - t.C_emitUserTypeDeps(env, t.getName(), outputCode); - if(outputCode) { - System.out.println("Decl.C_emitUserTypeDeps registering "+t.getName()); - env.println("labcomm"+env.verStr+"_encoder_register_"+env.prefix + t.getName()+"(e);"); - } else { // Just output a comment - String refpath = (via == null) ? "directly" : "indirectly via "+via; - env.println(" //Depends ("+refpath+") on "+t.getName() ); - } - } - } - } - public void Decl.C_emitUserTypeRefs(C_env env, String via, boolean outputCode) { - if( isReferenced() ) { - Iterator<Decl> it = type_references().iterator(); - while(it.hasNext()) { - Decl t = it.next(); - - t.C_emitUserTypeRefs(env, t.getName(), outputCode); - if(outputCode) { - env.println("labcomm"+env.verStr+"_encoder_register_"+env.prefix + t.getName()+"(e);"); - } else { // Just output a comment - String refpath = (via == null) ? "directly" : "indirectly via "+via; - env.println(" //Is referenced ("+refpath+") by "+t.getName() ); - } - } - } - } -} - aspect C_Signature { public void ASTNode.C_emitSignature(C_env env) { diff --git a/compiler/2014/C_CodeGen.jrag b/compiler/2014/C_CodeGen.jrag index bc9d762..d53de29 100644 --- a/compiler/2014/C_CodeGen.jrag +++ b/compiler/2014/C_CodeGen.jrag @@ -1244,7 +1244,6 @@ aspect C_TypeDependencies { t.C_emitUserTypeDeps(env, t.getName(), outputCode); if(outputCode) { - System.out.println("Decl.C_emitUserTypeDeps registering "+t.getName()); env.println("labcomm"+env.verStr+"_encoder_type_register_"+env.prefix + t.getName()+"(e);"); } else { // Just output a comment String refpath = (via == null) ? "directly" : "indirectly via "+via; -- GitLab