mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 04:15:58 +03:00

Changed the tryfinally handlers to a more generalized EnclosingHandler. Changed ClassInfoS to be mutable so they can be used as locks. Added new BB after throw ala return/break etc.
31 lines
587 B
C++
31 lines
587 B
C++
#ifndef LLVMDC_IR_IRFUNCTION_H
|
|
#define LLVMDC_IR_IRFUNCTION_H
|
|
|
|
#include "ir/ir.h"
|
|
|
|
#include <vector>
|
|
|
|
// represents a function
|
|
struct IrFunction : IrBase
|
|
{
|
|
llvm::Function* func;
|
|
llvm::Instruction* allocapoint;
|
|
FuncDeclaration* decl;
|
|
TypeFunction* type;
|
|
|
|
bool queued;
|
|
bool defined;
|
|
llvm::Value* retArg;
|
|
llvm::Value* thisVar;
|
|
llvm::Value* nestedVar;
|
|
llvm::Value* _arguments;
|
|
llvm::Value* _argptr;
|
|
llvm::Constant* dwarfSubProg;
|
|
|
|
llvm::AllocaInst* srcfileArg;
|
|
llvm::AllocaInst* msgArg;
|
|
|
|
IrFunction(FuncDeclaration* fd);
|
|
};
|
|
|
|
#endif
|