2023-02-08 13:21:36 +01:00
|
|
|
// SPDX-License-Identifier: Unlicense
|
2021-03-23 20:19:10 +01:00
|
|
|
|
|
|
|
#ifndef _FRR_LLVM_DEBUGINFO_H
|
|
|
|
#define _FRR_LLVM_DEBUGINFO_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <llvm-c/Core.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct dbginfo;
|
|
|
|
|
|
|
|
extern struct dbginfo *dbginfo_load(LLVMModuleRef mod);
|
|
|
|
extern bool dbginfo_struct_member(struct dbginfo *di, LLVMTypeRef typ,
|
|
|
|
unsigned long long idx, char **struct_name,
|
|
|
|
char **member_name);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _FRR_LLVM_DEBUGINFO_H */
|