| 1 |
// Copyright (c) Meta Platforms, Inc. and affiliates. |
| 2 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 |
// Generated by scripts/gen_dwarf_constants.py. |
| 4 |
|
| 5 |
#include <stdio.h> |
| 6 |
|
| 7 |
#include "dwarf_constants.h" |
| 8 |
|
| 9 |
#define X(name, _) if (value == name) return #name; |
| 10 |
|
| 11 |
const char *dw_op_str(int value, char buf[static DW_OP_STR_BUF_LEN]) |
| 12 |
{ |
| 13 |
DW_OP_DEFINITIONS |
| 14 |
snprintf(buf, DW_OP_STR_BUF_LEN, DW_OP_STR_UNKNOWN_FORMAT, value); |
| 15 |
return buf; |
| 16 |
} |
| 17 |
|
| 18 |
const char *dw_tag_str(int value, char buf[static DW_TAG_STR_BUF_LEN]) |
| 19 |
{ |
| 20 |
DW_TAG_DEFINITIONS |
| 21 |
snprintf(buf, DW_TAG_STR_BUF_LEN, DW_TAG_STR_UNKNOWN_FORMAT, value); |
| 22 |
return buf; |
| 23 |
} |
| 24 |
|
| 25 |
#undef X |