search for: gdbm_fetch

Displaying 1 result from an estimated 1 matches for "gdbm_fetch".

2007 Dec 02
1
[LLVMdev] reading & writing bitcode from non file, e.g. GDBM store (or MySQL database)
...es!) I want to store modules inside non-files, for example inside GDBM entries (or inside MySQL databases). Apparently, I can read a module from a GDBM store with something like (all error handling is skipped) datum keyd, vald; // GDBM key & value // fill keyd appropriately vald = gdbm_fetch (bark_gdbm, keyd); MemoryBuffer* membuf = MemoryBuffer::getMemBuffer(vald.dptr, vald.dptr+vald.dsize, bufnam); Module* lmodu = ParseBitcodeFile(membuf, &errmsg); // do something appropriate with the llvm module lmodu Unfortunately, there is no way of dumping into memory, except b...