Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 980:ae710cba0884
Clean up the code generated when jumping out of inline asm and make label names more expressive.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 18 Feb 2009 22:50:22 +0100 |
parents | 780530d1cad3 |
children | 18ad5601dff7 |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Wed Feb 18 21:46:14 2009 +0100 +++ b/gen/llvmhelpers.cpp Wed Feb 18 22:50:22 2009 +0100 @@ -191,7 +191,7 @@ 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;