search for: owning_ptr

Displaying 2 results from an estimated 2 matches for "owning_ptr".

2012 Feb 03
2
[LLVMdev] Invalid bitcode signature
I'm trying to link two modules together using the C++ API, one that's a sort of library module and one that's being generated from the source language. If I have something like this: OwningPtr<MemoryBuffer> owning_ptr; if (MemoryBuffer::getFile(StringRef("../hello.bc"), owning_ptr)) std::cout << "error opening file" << std::endl; Module* Lib = ParseBitcodeFile(owning_ptr.get(), context, &error); if (!Lib) std::cout << error << std::endl; When I run this...
2012 Feb 04
0
[LLVMdev] Invalid bitcode signature
..., at 1:47 PM, Fraser Cormack wrote: > > I'm trying to link two modules together using the C++ API, one that's a sort > of library module and one that's being generated from the source language. > > If I have something like this: > > OwningPtr<MemoryBuffer> owning_ptr; > if (MemoryBuffer::getFile(StringRef("../hello.bc"), owning_ptr)) > std::cout << "error opening file" << std::endl; > > Module* Lib = ParseBitcodeFile(owning_ptr.get(), context, &error); > > if (!Lib) > std::cout << error &lt...