summaryrefslogtreecommitdiffstats
path: root/tools/frr-llvm-debuginfo.h
blob: 4d2985cf79f69a4993949b3d906f8056f7ee4588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: Unlicense

#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 */