Commit 3f91b127 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Removed some dead-code elimination, sice it stumbled on

unused typedefs.
parent b5cc5246
......@@ -1284,7 +1284,7 @@ aspect C_Signature {
eq TypeDecl.C_DeclTypeString() = "LABCOMM_TYPEDEF";
public void Decl.C_emitSignature(C_env env) {
if( (isReferenced() || isSampleDecl())){
if( (true || isReferenced() || isSampleDecl())){
Signature signature = getSignature();
signature.C_emitSignature(env, !isSampleDecl());
C_emitFlatSignature(env);
......@@ -1480,10 +1480,14 @@ aspect C_Constructor {
env.println("}");
}
public void Decl.C_emitConstructor(C_env env) {
// }
//XXX
// public void SampleDecl.C_emitConstructor(C_env env) {
public void TypeDecl.C_emitConstructor(C_env env) {
if (isReferenced()) {
env.println("labcomm"+env.verStr+"_set_local_index(&signature_" +
env.prefix + getName() + ");");
}
}
public void SampleDecl.C_emitConstructor(C_env env) {
env.println("labcomm"+env.verStr+"_set_local_index(&signature_" +
env.prefix + getName() + ");");
}
......
typedef void unused_t;
typedef void v_t;
sample v_t V;
sample byte B;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment