[LLVMdev] porting to 3.1: ConstantDataArray
charles quarra
charllsnotieneningunputocorreo at gmail.com
Fri Nov 16 05:55:52 PST 2012
Hi,
In llvm 3.0 llvm::ConstantArray had a ::getAsCString() method that
returned the buffer as a std::string. Now it seems that 3.1 this
method dissapeared.
I found that llvm::ConstantDataArray has a method called
getAsString(), but it returns a Constant*.
What is the safe way to retrieve the pointer of the Constant array as
a C string?
More information about the llvm-dev
mailing list