Displaying 3 results from an estimated 3 matches for "mem_buf".
Did you mean:
ber_buf
2017 Jun 14
2
Using LLD to create a .lib from a .def
...==========================================================
This is so that I can write the following user code:
// writes the output to dll_path with .dll replaced with .lib
void ZigLLDDefToLib(Buf *def_contents, Buf *dll_path) {
lld::coff::Config = new lld::coff::Configuration;
auto mem_buf = MemoryBuffer::getMemBuffer(buf_ptr(def_contents));
MemoryBufferRef mbref(*mem_buf);
lld::coff::parseModuleDefs(mbref);
lld::coff::Config->OutputFile = buf_ptr(dll_path);
lld::coff::writeImportLibrary();
}
Then I give it def_contents that looks like:
LIBRARY kernel32
EXPORTS
E...
2017 Jun 15
2
Using LLD to create a .lib from a .def
...t; This is so that I can write the following user code:
>>
>>
>>
>> // writes the output to dll_path with .dll replaced with .lib
>> void ZigLLDDefToLib(Buf *def_contents, Buf *dll_path) {
>> lld::coff::Config = new lld::coff::Configuration;
>> auto mem_buf = MemoryBuffer::getMemBuffer(buf_ptr(def_contents));
>> MemoryBufferRef mbref(*mem_buf);
>> lld::coff::parseModuleDefs(mbref);
>> lld::coff::Config->OutputFile = buf_ptr(dll_path);
>> lld::coff::writeImportLibrary();
>> }
>>
>>
>> T...
2017 Jun 16
2
Using LLD to create a .lib from a .def
...>>>>
>>>>
>>>>
>>>> // writes the output to dll_path with .dll replaced with .lib
>>>> void ZigLLDDefToLib(Buf *def_contents, Buf *dll_path) {
>>>> lld::coff::Config = new lld::coff::Configuration;
>>>> auto mem_buf = MemoryBuffer::getMemBuffer(buf_ptr(def_contents));
>>>> MemoryBufferRef mbref(*mem_buf);
>>>> lld::coff::parseModuleDefs(mbref);
>>>> lld::coff::Config->OutputFile = buf_ptr(dll_path);
>>>> lld::coff::writeImportLibrary();
>>...