LLVM
20.0.0git
lib
DebugInfo
PDB
Native
EnumTables.cpp
Go to the documentation of this file.
1
//===- EnumTables.cpp - Enum to string conversion tables --------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
llvm/DebugInfo/PDB/Native/EnumTables.h
"
10
#include "
llvm/DebugInfo/PDB/Native/RawConstants.h
"
11
#include "
llvm/Support/ScopedPrinter.h
"
12
13
using namespace
llvm
;
14
using namespace
llvm::pdb
;
15
16
#define PDB_ENUM_CLASS_ENT(enum_class, enum) \
17
{ #enum, std::underlying_type_t<enum_class>(enum_class::enum) }
18
19
#define PDB_ENUM_ENT(ns, enum) \
20
{ #enum, ns::enum }
21
22
static
const
EnumEntry<uint16_t>
OMFSegMapDescFlagNames
[] = {
23
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
Read
),
24
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
Write
),
25
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
Execute
),
26
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
AddressIs32Bit
),
27
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
IsSelector
),
28
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
IsAbsoluteAddress
),
29
PDB_ENUM_CLASS_ENT
(
OMFSegDescFlags
,
IsGroup
),
30
};
31
32
namespace
llvm
{
33
namespace
pdb {
34
ArrayRef<EnumEntry<uint16_t>
>
getOMFSegMapDescFlagNames
() {
35
return
ArrayRef
(
OMFSegMapDescFlagNames
);
36
}
37
}
38
}
OMFSegMapDescFlagNames
static const EnumEntry< uint16_t > OMFSegMapDescFlagNames[]
Definition:
EnumTables.cpp:22
PDB_ENUM_CLASS_ENT
#define PDB_ENUM_CLASS_ENT(enum_class, enum)
Definition:
EnumTables.cpp:16
EnumTables.h
RawConstants.h
ScopedPrinter.h
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition:
ArrayRef.h:41
llvm::pdb
Definition:
LVCodeViewReader.h:44
llvm::pdb::OMFSegDescFlags
OMFSegDescFlags
Definition:
RawConstants.h:101
llvm::pdb::OMFSegDescFlags::IsAbsoluteAddress
@ IsAbsoluteAddress
llvm::pdb::OMFSegDescFlags::AddressIs32Bit
@ AddressIs32Bit
llvm::pdb::OMFSegDescFlags::IsGroup
@ IsGroup
llvm::pdb::OMFSegDescFlags::Execute
@ Execute
llvm::pdb::OMFSegDescFlags::IsSelector
@ IsSelector
llvm::pdb::getOMFSegMapDescFlagNames
ArrayRef< EnumEntry< uint16_t > > getOMFSegMapDescFlagNames()
Definition:
EnumTables.cpp:34
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::Read
@ Read
Definition:
CodeGenData.h:102
llvm::Write
@ Write
Definition:
CodeGenData.h:103
llvm::EnumEntry
Definition:
ScopedPrinter.h:24
Generated on Thu Dec 12 2024 02:33:35 for LLVM by
1.9.6