mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
IR: Move DebugInfo Flag* definitions to .def file, NFC
This prepares for adding string support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ab90d412e
commit
5eba204198
@ -132,24 +132,9 @@ public:
|
||||
/// The three accessibility flags are mutually exclusive and rolled together
|
||||
/// in the first two bits.
|
||||
enum {
|
||||
FlagAccessibility = 1 << 0 | 1 << 1,
|
||||
FlagPrivate = 1,
|
||||
FlagProtected = 2,
|
||||
FlagPublic = 3,
|
||||
|
||||
FlagFwdDecl = 1 << 2,
|
||||
FlagAppleBlock = 1 << 3,
|
||||
FlagBlockByrefStruct = 1 << 4,
|
||||
FlagVirtual = 1 << 5,
|
||||
FlagArtificial = 1 << 6,
|
||||
FlagExplicit = 1 << 7,
|
||||
FlagPrototyped = 1 << 8,
|
||||
FlagObjcClassComplete = 1 << 9,
|
||||
FlagObjectPointer = 1 << 10,
|
||||
FlagVector = 1 << 11,
|
||||
FlagStaticMember = 1 << 12,
|
||||
FlagLValueReference = 1 << 13,
|
||||
FlagRValueReference = 1 << 14
|
||||
#define HANDLE_DI_FLAG(ID, NAME) Flag##NAME = ID,
|
||||
#include "llvm/IR/DebugInfoFlags.def"
|
||||
FlagAccessibility = FlagPrivate | FlagProtected | FlagPublic
|
||||
};
|
||||
|
||||
protected:
|
||||
|
36
include/llvm/IR/DebugInfoFlags.def
Normal file
36
include/llvm/IR/DebugInfoFlags.def
Normal file
@ -0,0 +1,36 @@
|
||||
//===- llvm/IR/DebugInfoFlags.def - Debug info flag definitions -*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// Macros for running through debug info flags.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// TODO: Add other DW-based macros.
|
||||
#ifndef HANDLE_DI_FLAG
|
||||
#error "Missing macro definition of HANDLE_DI_FLAG"
|
||||
#endif
|
||||
|
||||
HANDLE_DI_FLAG(1, Private)
|
||||
HANDLE_DI_FLAG(2, Protected)
|
||||
HANDLE_DI_FLAG(3, Public)
|
||||
HANDLE_DI_FLAG((1 << 2), FwdDecl)
|
||||
HANDLE_DI_FLAG((1 << 3), AppleBlock)
|
||||
HANDLE_DI_FLAG((1 << 4), BlockByrefStruct)
|
||||
HANDLE_DI_FLAG((1 << 5), Virtual)
|
||||
HANDLE_DI_FLAG((1 << 6), Artificial)
|
||||
HANDLE_DI_FLAG((1 << 7), Explicit)
|
||||
HANDLE_DI_FLAG((1 << 8), Prototyped)
|
||||
HANDLE_DI_FLAG((1 << 9), ObjcClassComplete)
|
||||
HANDLE_DI_FLAG((1 << 10), ObjectPointer)
|
||||
HANDLE_DI_FLAG((1 << 11), Vector)
|
||||
HANDLE_DI_FLAG((1 << 12), StaticMember)
|
||||
HANDLE_DI_FLAG((1 << 13), LValueReference)
|
||||
HANDLE_DI_FLAG((1 << 14), RValueReference)
|
||||
|
||||
#undef HANDLE_DI_FLAG
|
Loading…
Reference in New Issue
Block a user