Displaying 3 results from an estimated 3 matches for "llvmctx".
Did you mean:
llvmct
2013 Dec 17
0
[LLVMdev] llvmContext::removeModule doesn't remove NamedStructTypes
...ing scenario. We deliberately parse a bitcode
file twice. It contains a named struct type. eg. %struct.cmd = type {
float, float, float, float, float, i32 }. In the second module->dump,
%struct.cmd becomes %struct.cmd0.
my code is simplified like this.
int main()
{
llvm::LLVMContext &llvmCtx = llvm::getGlobalContext();
string ErrMsg;
string filename = "wrapper.bc";
llvm::OwningPtr<llvm::MemoryBuffer> File;
if (llvm::MemoryBuffer::getFileOrSTDIN(filename, File)) {
assert(0);
}
llvm::MemoryBuffer * buffer = File.take();
{
llvm...
2012 Dec 26
3
[LLVMdev] Errors linking against libLLVMCore
I'm trying to make a library in Xcode that links against LLVM. I used the STL C++ template in Xcode 4.5.2, added libLLVMCore.a and libLLVMSupport.a to the link binaries phase, and made this call in my code:
llvm::LLVMContext& llvmCTX = llvm::getGlobalContext();
I get link errors against std::string and other STL classes:
Undefined symbols for architecture x86_64:
"std::string::copy(char*, unsigned long, unsigned long) const", referenced from:
llvm::sys::Path::makeUnique(bool, std::string*) in libLLVMSupport....
2012 Dec 27
0
[LLVMdev] Errors linking against libLLVMCore
On 12/26/12 12:32 AM, Rick Mann wrote:
> I'm trying to make a library in Xcode that links against LLVM. I used the STL C++ template in Xcode 4.5.2, added libLLVMCore.a and libLLVMSupport.a to the link binaries phase, and made this call in my code:
>
> llvm::LLVMContext& llvmCTX = llvm::getGlobalContext();
>
> I get link errors against std::string and other STL classes:
>
> Undefined symbols for architecture x86_64:
> "std::string::copy(char*, unsigned long, unsigned long) const", referenced from:
> llvm::sys::Path::makeUnique(bool, st...