search for: strconst

Displaying 3 results from an estimated 3 matches for "strconst".

Did you mean: xstrconst
2004 Jun 17
0
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
...icular, you can't use the address of global variables as constants (yet: see PR122). This is definitely a bug in LLVM that you can't do this, but we do have a gross work-around. In particular, to get the address of a global value as a constant, use the ConstantPointerRef class: Constant *strconst = ConstantPointerRef::get(str); Constant *gep = ConstantExpr::getGetElementPtr(strconst, indices); In the future, the GlobalValue class will derive from the Constant class, making this unnecessary. Since the "value" of a GlobalValue is the *address* of the global, and since this is a li...
2004 Jun 17
4
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
How is this done? Everything logical I have tried has failed, here was one attempt: Constant *C = (Constant*) ConstantArray::get(inst2string(I)); //fucnction defined elsewhere //generates a correct Global string GlobalVariable *str = new GlobalVariable(C->getType(), true, GlobalValue::InternalLinkage, C, mkStrName( strNumber++ ), &M); std::vector<Value*>
2010 Jul 04
5
dovecot-1.2.12 fails to build on Solaris 8 and 10
configure fails with : configure: error: Unsupported off_t type I am not too sure what off_t is needed but this is a pretty standard thing. My configure line : ./configure --build=i386-pc-solaris2.10 --host=i386-pc-solaris2.10 --prefix=/opt/csw --with-zlib --with-ssl=openssl --with-storages=mbox,maildir --with-libiconv-prefix=/opt/csw Yes, the openssl libs are in /opt/csw/lib Not sure what