The porting issue from llvm-2.8 to llvm-3.0

I try to port our project from llvm-2.8 to llvm-3.0, but some issue
exist on the following code:

#define getIntegerType(x) (IntegerType::get(_CTX(), x))
Value *int_enable = BinaryOperator::Create(Instruction::And,
v_cpsr, ConstantInt::get(getIntegerType(4), 0x80), "", bb_dispatch)

The llvm complains the following error message:

error: incomplete type 'llvm::ConstantInt' used in nested name specifier

So who can give me some hints for the issue?

Thanks
MK

"Michael.Kang" <blackfin.kang@gmail.com> writes:

error: incomplete type 'llvm::ConstantInt' used in nested name specifier

So who can give me some hints for the issue?

Maybe you are not including the relevant headers?

ConstantInt is defined in Constants.h

I successfully ported our project from llvm-2.8 to llvm-3.0.
The most important change is you need to change some argument type
from Vector to llvm::ArrayRef, such as
CallInst::Create, FunctionType::get etc.

Until now , our project is running fine except some minor issue. I
still need to look into if the current issues is related to llvm 3.0

Thanks all your help.

Thanks
MK

One question here. Any plan to LLVM 3.1? :slight_smile:

Regards,
chenwj