Mercurial > projects > ldc
comparison gen/statements.cpp @ 233:76ee1bbe487e trunk
[svn r249] Changed inline asm clobbers to a set instead of a list so we don't get duplicate clobbers.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 06:45:54 +0200 |
parents | 092468448d25 |
children | 9760f54af0b7 |
comparison
equal
deleted
inserted
replaced
232:092468448d25 | 233:76ee1bbe487e |
---|---|
991 { | 991 { |
992 Logger::println("LabelStatement::toIR(): %s", loc.toChars()); | 992 Logger::println("LabelStatement::toIR(): %s", loc.toChars()); |
993 LOG_SCOPE; | 993 LOG_SCOPE; |
994 | 994 |
995 // if it's an inline asm label, we don't create a basicblock, just emit it in the asm | 995 // if it's an inline asm label, we don't create a basicblock, just emit it in the asm |
996 if (p->inASM) | 996 if (p->asmBlock) |
997 { | 997 { |
998 IRAsmStmt* a = new IRAsmStmt; | 998 IRAsmStmt* a = new IRAsmStmt; |
999 a->code = ".LDASM"; | 999 a->code = ".LDASM"; |
1000 a->code += ident->toChars(); | 1000 a->code += ident->toChars(); |
1001 a->code += ":"; | 1001 a->code += ":"; |
1002 p->ASMs.push_back(a); | 1002 p->asmBlock->s.push_back(a); |
1003 return; | 1003 return; |
1004 } | 1004 } |
1005 | 1005 |
1006 assert(tf == NULL); | 1006 assert(tf == NULL); |
1007 | 1007 |