Mercurial > projects > ldc
diff gen/todebug.cpp @ 1539:6364e09628fd
Build fix for LLVM r75546 and r75559
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Tue, 14 Jul 2009 02:19:05 +0200 |
parents | 61f12f4651b5 |
children | 7fcb72d518f6 |
line wrap: on
line diff
--- a/gen/todebug.cpp Tue Jul 14 18:24:40 2009 +0200 +++ b/gen/todebug.cpp Tue Jul 14 02:19:05 2009 +0200 @@ -23,7 +23,7 @@ #define DBG_TYPE ( getPtrToType(llvm::StructType::get(NULL,NULL)) ) #define DBG_CAST(X) ( llvm::ConstantExpr::getBitCast(X, DBG_TYPE) ) -#define DBG_TAG(X) ( llvm::ConstantExpr::getAdd( DtoConstUint( X ), DtoConstUint( llvm::LLVMDebugVersion ) ) ) +#define DBG_TAG(X) ( gIR->context().getConstantExprAdd( DtoConstUint( X ), DtoConstUint( llvm::LLVMDebugVersion ) ) ) //////////////////////////////////////////////////////////////////////////////////////////////////