Mercurial > projects > ldc
diff ir/irlandingpad.h @ 1051:dc608dc33081
Make IrFuncTy a member of TypeFunction. Reset between modules compiled in the
same LDC call.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Mar 2009 14:25:30 +0100 |
parents | eef8ac26c66c |
children |
line wrap: on
line diff
--- a/ir/irlandingpad.h Fri Mar 06 21:15:13 2009 +0100 +++ b/ir/irlandingpad.h Sat Mar 07 14:25:30 2009 +0100 @@ -7,6 +7,13 @@ #include <deque> #include <stack> +namespace llvm { + class Type; + class Value; + class BasicBlock; + class Function; +} + // only to be used within IRLandingPad // holds information about a single catch or finally struct IRLandingPadInfo @@ -57,7 +64,7 @@ llvm::BasicBlock* get(); // creates or gets storage for exception object - LLValue* getExceptionStorage(); + llvm::Value* getExceptionStorage(); private: // constructs the landing pad from infos @@ -77,7 +84,7 @@ std::map<ClassDeclaration*, int> catchToInt; // storage for the catch variable - LLValue* catch_var; + llvm::Value* catch_var; }; #endif