LLVM  14.0.0git
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 
11 
12 using namespace llvm;
13 using namespace llvm::pdb;
14 
15 #define PDB_ENUM_CLASS_ENT(enum_class, enum) \
16  { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
17 
18 #define PDB_ENUM_ENT(ns, enum) \
19  { #enum, ns::enum }
20 
29 };
30 
31 namespace llvm {
32 namespace pdb {
35 }
36 }
37 }
RawConstants.h
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
EnumTables.h
llvm::pdb::OMFSegDescFlags::IsAbsoluteAddress
@ IsAbsoluteAddress
llvm::pdb::OMFSegDescFlags
OMFSegDescFlags
Definition: RawConstants.h:101
llvm::EnumEntry
Definition: ScopedPrinter.h:24
PDB_ENUM_CLASS_ENT
#define PDB_ENUM_CLASS_ENT(enum_class, enum)
Definition: EnumTables.cpp:15
llvm::pdb
Definition: ConcreteSymbolEnumerator.h:20
llvm::pdb::OMFSegDescFlags::Read
@ Read
OMFSegMapDescFlagNames
static const EnumEntry< uint16_t > OMFSegMapDescFlagNames[]
Definition: EnumTables.cpp:21
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
llvm::pdb::getOMFSegMapDescFlagNames
ArrayRef< EnumEntry< uint16_t > > getOMFSegMapDescFlagNames()
Definition: EnumTables.cpp:33
llvm::pdb::OMFSegDescFlags::IsGroup
@ IsGroup
llvm::pdb::OMFSegDescFlags::AddressIs32Bit
@ AddressIs32Bit
llvm::makeArrayRef
ArrayRef< T > makeArrayRef(const T &OneElt)
Construct an ArrayRef from a single element.
Definition: ArrayRef.h:476
llvm::pdb::OMFSegDescFlags::Write
@ Write
llvm::pdb::OMFSegDescFlags::IsSelector
@ IsSelector
llvm::pdb::OMFSegDescFlags::Execute
@ Execute