Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
3f91b127
Commit
3f91b127
authored
Feb 23, 2015
by
Anders Blomdell
Browse files
Removed some dead-code elimination, sice it stumbled on
unused typedefs.
parent
b5cc5246
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/2014/C_CodeGen.jrag
View file @
3f91b127
...
...
@@ -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() + ");");
}
...
...
lib/c/2014/test/generated_encoding.lc
View file @
3f91b127
typedef void unused_t;
typedef void v_t;
sample v_t V;
sample byte B;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment