Displaying 2 results from an estimated 2 matches for "llvmdwarfcontextref".
2019 Apr 24
2
[DebugInfo] DWARF C API
...ARF debugging format
(just like how llvm-dwarfdump does, but maybe more than just dumping debug
info)
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;...
2019 Apr 24
2
[DebugInfo] DWARF C API
...s, but maybe
> more than just dumping debug info)
> >
> > 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());
> > }
>...