Mercurial > projects > ldc
comparison gen/toir.cpp @ 219:761c8352f494 trunk
[svn r235] rough port of GDC's inline assembler code, unfinished
author | ChristianK |
---|---|
date | Thu, 05 Jun 2008 19:22:37 +0200 |
parents | df641a27e9fd |
children | 0db62b770a49 |
comparison
equal
deleted
inserted
replaced
218:df641a27e9fd | 219:761c8352f494 |
---|---|
3146 return 0; | 3146 return 0; |
3147 } | 3147 } |
3148 | 3148 |
3149 void obj_includelib(char*){} | 3149 void obj_includelib(char*){} |
3150 | 3150 |
3151 /* this has moved to asmstmt.cpp | |
3151 AsmStatement::AsmStatement(Loc loc, Token *tokens) : | 3152 AsmStatement::AsmStatement(Loc loc, Token *tokens) : |
3152 Statement(loc) | 3153 Statement(loc) |
3153 { | 3154 { |
3154 this->tokens = tokens; | 3155 this->tokens = tokens; |
3155 } | 3156 } |
3156 Statement *AsmStatement::syntaxCopy() | 3157 Statement *AsmStatement::syntaxCopy() |
3157 { | 3158 { |
3158 /*error("%s: inline asm is not yet implemented", loc.toChars()); | 3159 //error("%s: inline asm is not yet implemented", loc.toChars()); |
3159 fatal(); | 3160 //fatal(); |
3160 assert(0);*/ | 3161 //assert(0); |
3161 return 0; | 3162 return 0; |
3162 } | 3163 } |
3163 | 3164 |
3164 Statement *AsmStatement::semantic(Scope *sc) | 3165 Statement *AsmStatement::semantic(Scope *sc) |
3165 { | 3166 { |
3172 Statement::toCBuffer(buf, hgs); | 3173 Statement::toCBuffer(buf, hgs); |
3173 } | 3174 } |
3174 | 3175 |
3175 int AsmStatement::comeFrom() | 3176 int AsmStatement::comeFrom() |
3176 { | 3177 { |
3177 /*error("%s: inline asm is not yet implemented", loc.toChars()); | 3178 //error("%s: inline asm is not yet implemented", loc.toChars()); |
3178 fatal(); | 3179 //fatal(); |
3179 assert(0);*/ | 3180 //assert(0); |
3180 return 0; | 3181 return 0; |
3181 } | 3182 } |
3183 */ | |
3182 | 3184 |
3183 void | 3185 void |
3184 backend_init() | 3186 backend_init() |
3185 { | 3187 { |
3186 // now lazily loaded | 3188 // now lazily loaded |