Enabling llvm 3.4

This commit is contained in:
Dmitry Babokin
2013-05-13 19:25:31 +04:00
parent d958b0b9d6
commit b6b9daa3c5
7 changed files with 21 additions and 21 deletions

View File

@@ -725,7 +725,7 @@ lDefineConstantIntFunc(const char *name, int val, llvm::Module *module,
Assert(func != NULL); // it should be declared already...
#if defined(LLVM_3_2)
func->addFnAttr(llvm::Attributes::AlwaysInline);
#else
#else // LLVM 3.1 and 3.3+
func->addFnAttr(llvm::Attribute::AlwaysInline);
#endif
llvm::BasicBlock *bblock = llvm::BasicBlock::Create(*g->ctx, "entry", func, 0);