mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
[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)
This commit is contained in:
parent
80ba763fda
commit
7e7ac3a6f7
5 changed files with 20 additions and 11 deletions
|
@ -26,6 +26,10 @@ struct IrFunction : IrBase
|
|||
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue