LLVM
8.0.1
lib
DebugInfo
PDB
Native
EnumTables.cpp
Go to the documentation of this file.
1
//===- EnumTables.cpp - Enum to string conversion tables --------*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#include "
llvm/DebugInfo/PDB/Native/EnumTables.h
"
11
#include "
llvm/DebugInfo/PDB/Native/RawConstants.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 < enum_class > ::type(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
makeArrayRef
(OMFSegMapDescFlagNames);
36
}
37
}
38
}
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:24
llvm::pdb::OMFSegDescFlags::Read
llvm::pdb::getOMFSegMapDescFlagNames
ArrayRef< EnumEntry< uint16_t > > getOMFSegMapDescFlagNames()
Definition:
EnumTables.cpp:34
EnumTables.h
PDB_ENUM_CLASS_ENT
#define PDB_ENUM_CLASS_ENT(enum_class, enum)
Definition:
EnumTables.cpp:16
llvm::makeArrayRef
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
Definition:
ArrayRef.h:451
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition:
APInt.h:33
llvm::pdb
Definition:
ConcreteSymbolEnumerator.h:21
llvm::pdb::OMFSegDescFlags::IsSelector
llvm::pdb::OMFSegDescFlags::Execute
OMFSegMapDescFlagNames
static const EnumEntry< uint16_t > OMFSegMapDescFlagNames[]
Definition:
EnumTables.cpp:22
llvm::pdb::OMFSegDescFlags
OMFSegDescFlags
Definition:
RawConstants.h:102
llvm::pdb::OMFSegDescFlags::IsAbsoluteAddress
RawConstants.h
llvm::pdb::OMFSegDescFlags::IsGroup
llvm::pdb::OMFSegDescFlags::AddressIs32Bit
llvm::EnumEntry
Definition:
ScopedPrinter.h:24
llvm::pdb::OMFSegDescFlags::Write
Generated on Sun Dec 20 2020 13:55:09 for LLVM by
1.8.13