Displaying 2 results from an estimated 2 matches for "llvmbinaryref".
2019 Apr 24
2
[DebugInfo] DWARF C API
...I've started with creating C structure for DebugInfo::DWARF::DWARFContext
which contains all DWARF DIEs in the object file. For this I used
```
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef)
```
then defined some C functions
```
LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) {
std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*unwrap(Bin));
return wrap(DICtx.release());
}
void LLVMPrintDWARFContext(LLVMDWARFContextRef C) {
DIDumpOptions DumpOpts;
DumpOpts.DumpType = DIDT_DebugInfo; // I only care about the .debug_info
section
unwrap(C)-&g...
2019 Apr 24
2
[DebugInfo] DWARF C API
...:DWARFContext which contains all DWARF DIEs in the object
> file. For this I used
> > ```
> > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef)
> > ```
> > then defined some C functions
> > ```
> > LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) {
> > std::unique_ptr<DWARFContext> DICtx =
> DWARFContext::create(*unwrap(Bin));
> > return wrap(DICtx.release());
> > }
> >
> > void LLVMPrintDWARFContext(LLVMDWARFContextRef C) {
> > DIDumpOptions DumpOpts;
> > DumpOpts.DumpType = D...