Hi all;<div><br></div><div>I have been trying to use the llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool) function but seems it has been deprecated.</div><div><br></div><div><div>ProfileDependence.cpp:68:73: error: no matching function for call to ‘llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool)’</div>
<div>ProfileDependence.cpp:68:73: note: candidate is:</div><div>/home/arnie/llvm-clang/llvm/include/llvm/Constants.h:354:20: note: static llvm::Constant* llvm::ConstantArray::get(llvm::ArrayType*, llvm::ArrayRef<llvm::Constant*>)</div>
<div><br></div><div>Could anyone tell me how to give a value (lets say "hello world") to the Array Constant using currently available get method?</div><div><br></div><div>Previously llvm::ConstantArray::get(getGlobalContext(), "hello world", true) should have worked.</div>
<div><br></div><div>Thank you;</div><div><br></div>-- <br>Arnamoy Bhattacharyya<br>Athabasca Hall 143<br>Department of Computing Science - University of Alberta<br>Edmonton, Alberta, Canada, T6G 2E8<br>587-710-7073<br>
</div>