summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-03 21:56:01 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-03 21:56:01 +0000
commit974860774e022d11b96798343fa4ecf80c344bb9 (patch)
tree47b84e0f68a8b50d6bf6f3c3e2788a56ddd97010 /llvm/lib/AsmParser/LLParser.h
parent4e4aa7053503a00c29fadaec82e2f399bc9da492 (diff)
downloadbcm5719-llvm-974860774e022d11b96798343fa4ecf80c344bb9.tar.gz
bcm5719-llvm-974860774e022d11b96798343fa4ecf80c344bb9.zip
AsmParser: Recognize DW_TAG_* constants
Recognize `DW_TAG_` constants in assembly, and output it by default for `GenericDebugNode`. llvm-svn: 228042
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index 6e410d05cd2..240fb608138 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -102,6 +102,9 @@ namespace llvm {
NumTy Max = std::numeric_limits<NumTy>::max())
: ImplTy(Default), Max(Max) {}
};
+ struct DwarfTagField : public MDUnsignedField<uint32_t> {
+ DwarfTagField() : MDUnsignedField<uint32_t>(0, ~0u >> 16) {}
+ };
struct MDField : public MDFieldImpl<Metadata *> {
MDField() : ImplTy(nullptr) {}
};
@@ -427,6 +430,7 @@ namespace llvm {
bool ParseMDField(LocTy Loc, StringRef Name,
MDUnsignedField<uint32_t> &Result);
+ bool ParseMDField(LocTy Loc, StringRef Name, DwarfTagField &Result);
bool ParseMDField(LocTy Loc, StringRef Name, MDField &Result);
bool ParseMDField(LocTy Loc, StringRef Name, MDStringField &Result);
bool ParseMDField(LocTy Loc, StringRef Name, MDFieldList &Result);
OpenPOWER on IntegriCloud