Mercurial > projects > ldc
comparison gen/todebug.cpp @ 1569:755abafbf25d
Push the context through StructType::get.
Requires LLVM >= 78258. Also remove old #if's.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Thu, 06 Aug 2009 01:47:39 +0200 |
parents | 1d5c3354b3c2 |
children | 8d086d552909 |
comparison
equal
deleted
inserted
replaced
1568:a591aa6bd6dc | 1569:755abafbf25d |
---|---|
18 #include "ir/irmodule.h" | 18 #include "ir/irmodule.h" |
19 | 19 |
20 using namespace llvm::dwarf; | 20 using namespace llvm::dwarf; |
21 | 21 |
22 #define DBG_NULL ( LLConstant::getNullValue(DBG_TYPE) ) | 22 #define DBG_NULL ( LLConstant::getNullValue(DBG_TYPE) ) |
23 #define DBG_TYPE ( getPtrToType(llvm::StructType::get(NULL,NULL)) ) | 23 #define DBG_TYPE ( getPtrToType(llvm::StructType::get(gIR->context(),NULL,NULL)) ) |
24 #define DBG_CAST(X) ( llvm::ConstantExpr::getBitCast(X, DBG_TYPE) ) | 24 #define DBG_CAST(X) ( llvm::ConstantExpr::getBitCast(X, DBG_TYPE) ) |
25 | 25 |
26 #define DBG_TAG(X) ( llvm::ConstantExpr::getAdd( DtoConstUint( X ), DtoConstUint( llvm::LLVMDebugVersion ) ) ) | 26 #define DBG_TAG(X) ( llvm::ConstantExpr::getAdd( DtoConstUint( X ), DtoConstUint( llvm::LLVMDebugVersion ) ) ) |
27 | 27 |
28 ////////////////////////////////////////////////////////////////////////////////////////////////// | 28 ////////////////////////////////////////////////////////////////////////////////////////////////// |