search for: g_value_mine

Displaying 1 result from an estimated 1 matches for "g_value_mine".

2010 May 05
2
[LLVMdev] How to cast an integer array to an integer pointer? (user question)
...Ivars.push_back(llvm::ConstantInt::get(Type::getInt8Ty(Context), 0)); GlobalVariable *GGV = new GlobalVariable( *M, ArrayType::get(Type::getInt8Ty(Context), 4), true, GlobalValue::PrivateLinkage, llvm::ConstantArray::get(ArrayType::get(Type::getInt8Ty(Context), 4), Ivars), "g_value_mine", 0, false, 0/*AddrSpace*/); // ptr GetElementPtrInst *gepi = GetElementPtrInst::CreateInBounds( GGV, ConstantInt::get(Type::getInt32Ty(Context), 0), "zzz", BB ); // func call Function *PutsF = cast<Function>(M->getOrInsertFunction("puts&...