Clean up the code generated when jumping out of inline asm and make label names more expressive.

This commit is contained in:
Frits van Bommel
2009-02-18 22:50:22 +01:00
parent e3d6b1c051
commit 8ce2c9773e
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosinghandler, T
std::string labelname = gIR->func()->getScopedLabelName(target->toChars());
llvm::BasicBlock*& targetBB = gIR->func()->labelToBB[labelname];
if (targetBB == NULL)
targetBB = llvm::BasicBlock::Create("label", gIR->topfunc());
targetBB = llvm::BasicBlock::Create("label_" + labelname, gIR->topfunc());
// find finallys between goto and label
EnclosingHandler* endfinally = enclosinghandler;