search for: getpointedtyp

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

Did you mean: getpointedtype
2016 Apr 17
2
Problems with GEP and CallInst
...ng wrong with GEP? here’s the code that translates the AST Literal into LLVM IR and creates the GEP (the return value will be passed to the Callee): llvm::Value *ast::StringLiteral::build(llvmir_builder *builder) { TypeRef *strtype = evalType(); TypeRef *chrtype = strtype->getType()->getPointedType(); llvm::ArrayType *arty = llvm::ArrayType::get(chrtype->getIRType(), val.length()+1); if (!strcst) { strcst = new llvm::GlobalVariable(*container, arty, true,...