mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-13 02:13:14 +01:00
[svn r248] Fixed: labels in inline asm block now work for the normal case.
Fixed: inline asm blocks are now emitted as a single asm entity.
This commit is contained in:
@@ -992,6 +992,17 @@ void LabelStatement::toIR(IRState* p)
|
||||
Logger::println("LabelStatement::toIR(): %s", loc.toChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
// if it's an inline asm label, we don't create a basicblock, just emit it in the asm
|
||||
if (p->inASM)
|
||||
{
|
||||
IRAsmStmt* a = new IRAsmStmt;
|
||||
a->code = ".LDASM";
|
||||
a->code += ident->toChars();
|
||||
a->code += ":";
|
||||
p->ASMs.push_back(a);
|
||||
return;
|
||||
}
|
||||
|
||||
assert(tf == NULL);
|
||||
|
||||
llvm::BasicBlock* oldend = gIR->scopeend();
|
||||
|
||||
Reference in New Issue
Block a user