mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
DebugInfo: Move debug info flags to the new hierarchy
Move definition of the debug info flags to the new hierarchy, but leave them duplicated in `DIDescriptor` for now to reduce code churn. My current plan is to remove `DIDescriptor` entirely, so the duplication should go away naturally. llvm-svn: 233656
This commit is contained in:
parent
fbd792fce7
commit
b9ab9bdff1
@ -127,14 +127,13 @@ class DIDescriptor {
|
||||
template <typename T> friend class DIRef;
|
||||
|
||||
public:
|
||||
/// \brief Accessibility flags.
|
||||
/// \brief Duplicated debug info flags.
|
||||
///
|
||||
/// The three accessibility flags are mutually exclusive and rolled together
|
||||
/// in the first two bits.
|
||||
/// \see DebugNode::DIFlags.
|
||||
enum {
|
||||
#define HANDLE_DI_FLAG(ID, NAME) Flag##NAME = ID,
|
||||
#define HANDLE_DI_FLAG(ID, NAME) Flag##NAME = DebugNode::Flag##NAME,
|
||||
#include "llvm/IR/DebugInfoFlags.def"
|
||||
FlagAccessibility = FlagPrivate | FlagProtected | FlagPublic
|
||||
FlagAccessibility = DebugNode::FlagAccessibility
|
||||
};
|
||||
|
||||
static unsigned getFlag(StringRef Flag);
|
||||
|
@ -78,6 +78,16 @@ protected:
|
||||
public:
|
||||
unsigned getTag() const { return SubclassData16; }
|
||||
|
||||
/// \brief Debug info flags.
|
||||
///
|
||||
/// The three accessibility flags are mutually exclusive and rolled together
|
||||
/// in the first two bits.
|
||||
enum DIFlags {
|
||||
#define HANDLE_DI_FLAG(ID, NAME) Flag##NAME = ID,
|
||||
#include "llvm/IR/DebugInfoFlags.def"
|
||||
FlagAccessibility = FlagPrivate | FlagProtected | FlagPublic
|
||||
};
|
||||
|
||||
static bool classof(const Metadata *MD) {
|
||||
switch (MD->getMetadataID()) {
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user