GCC Middle and Back End API Reference
dwarf2codeview.h
Go to the documentation of this file.
1/* dwarf2codeview.h - DWARF interface for CodeView generation.
2 Copyright (C) 2023 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
8Software Foundation; either version 3, or (at your option) any later
9version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_DWARF2CODEVIEW_H
21#define GCC_DWARF2CODEVIEW_H 1
22
23#include "dwarf2out.h"
24#include "flags.h"
25
26/* Constants for in-built types. */
27
28#define T_VOID 0x0003
29#define T_CHAR 0x0010
30#define T_SHORT 0x0011
31#define T_LONG 0x0012
32#define T_QUAD 0x0013
33#define T_UCHAR 0x0020
34#define T_USHORT 0x0021
35#define T_ULONG 0x0022
36#define T_UQUAD 0x0023
37#define T_BOOL08 0x0030
38#define T_REAL32 0x0040
39#define T_REAL64 0x0041
40#define T_REAL80 0x0042
41#define T_REAL128 0x0043
42#define T_RCHAR 0x0070
43#define T_WCHAR 0x0071
44#define T_INT4 0x0074
45#define T_UINT4 0x0075
46#define T_CHAR16 0x007a
47#define T_CHAR32 0x007b
48#define T_CHAR8 0x007c
49
50#define CV_POINTER_32 0x0400
51#define CV_POINTER_64 0x0600
52#define T_32PVOID (T_VOID | CV_POINTER_32)
53#define T_64PVOID (T_VOID | CV_POINTER_64)
54
55/* LF_POINTER attributes. */
56#define CV_PTR_NEAR32 0x0a
57#define CV_PTR_64 0x0c
58#define CV_PTR_MODE_LVREF 0x20
59#define CV_PTR_MODE_RVREF 0x80
60
61/* LF_MODIFIER values. */
62#define MOD_const 0x1
63#define MOD_volatile 0x2
64
65#define CV_ACCESS_PRIVATE 1
66#define CV_ACCESS_PROTECTED 2
67#define CV_ACCESS_PUBLIC 3
68
69/* CV_methodprop_e values in cvinfo.h, shifted by 2 for CV_fldattr_t. */
70#define CV_METHOD_VANILLA 0x00
71#define CV_METHOD_VIRTUAL 0x04
72#define CV_METHOD_STATIC 0x08
73#define CV_METHOD_FRIEND 0x0c
74#define CV_METHOD_INTRO 0x10
75#define CV_METHOD_PUREVIRT 0x14
76#define CV_METHOD_PUREINTRO 0x18
77
78#define CV_PROP_FWDREF 0x80
79
80/* Debug Format Interface. Used in dwarf2out.cc. */
81
82extern void codeview_debug_finish (void);
83extern void codeview_source_line (unsigned int, const char *);
84extern void codeview_start_source_file (const char *);
86extern void codeview_end_epilogue (void);
88
89#endif /* GCC_DWARF2CODEVIEW_H */
void codeview_switch_text_section()
void codeview_source_line(unsigned int, const char *)
void codeview_debug_early_finish(dw_die_ref die)
void codeview_end_epilogue(void)
void codeview_start_source_file(const char *)
void codeview_debug_finish(void)
Definition dwarf2out.cc:3141