Mercurial > projects > ldc
diff ir/irfunction.h @ 353:a7a26f538d6e trunk
[svn r374] Move label target basic block from AST to IRFunction. This is a first step to allowing labels to be emitted multiple times. (for instance within finally blocks)
author | ChristianK |
---|---|
date | Mon, 14 Jul 2008 11:07:15 +0200 |
parents | e9c93739bc4c |
children | d8357f7004ca |
line wrap: on
line diff
--- a/ir/irfunction.h Mon Jul 14 10:01:09 2008 +0200 +++ b/ir/irfunction.h Mon Jul 14 11:07:15 2008 +0200 @@ -26,6 +26,10 @@ llvm::AllocaInst* srcfileArg; llvm::AllocaInst* msgArg; + // label to basic block lookup + typedef std::map<std::string, llvm::BasicBlock*> LabelToBBMap; + LabelToBBMap labelToBB; + // landing pads for try statements IRLandingPad landingPad;