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 -- www.skyeye.org
"Michael.Kang" <blackfin.kang at 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 On Wed, Jun 13, 2012 at 10:20 PM, =?utf-8?Q?=C3=93scar_Fuentes?<ofv at wanadoo.es> wrote:> The following message is a courtesy copy of an article > that has been posted to gmane.comp.compilers.llvm.devel as well. > > "Michael.Kang" <blackfin.kang at 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-- www.skyeye.org
Apparently Analagous Threads
- [LLVMdev] The porting issue from llvm-2.8 to llvm-3.0
- [LLVMdev] The porting issue from llvm-2.8 to llvm-3.0
- [LLVMdev] Why always abort in verifyFunction?
- [LLVMdev] Is it possible to run llvm on mips machine?
- [LLVMdev] Is it possible to run llvm on mips machine?