comparison 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
comparison
equal deleted inserted replaced
352:d920a244691b 353:a7a26f538d6e
24 llvm::Constant* dwarfSubProg; 24 llvm::Constant* dwarfSubProg;
25 25
26 llvm::AllocaInst* srcfileArg; 26 llvm::AllocaInst* srcfileArg;
27 llvm::AllocaInst* msgArg; 27 llvm::AllocaInst* msgArg;
28 28
29 // label to basic block lookup
30 typedef std::map<std::string, llvm::BasicBlock*> LabelToBBMap;
31 LabelToBBMap labelToBB;
32
29 // landing pads for try statements 33 // landing pads for try statements
30 IRLandingPad landingPad; 34 IRLandingPad landingPad;
31 35
32 IrFunction(FuncDeclaration* fd); 36 IrFunction(FuncDeclaration* fd);
33 }; 37 };