diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-27 21:15:43 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-27 21:15:43 +0000 |
| commit | ff18927c5828896ee9a511c46e6b9acef8ab37e3 (patch) | |
| tree | f7102a61cb58bfdecbbb97edc1cbc02cd1b97dc3 /llvm/include | |
| parent | 983bec6bc688d00c39e1072ccd5adc5744f5ac53 (diff) | |
| download | bcm5719-llvm-ff18927c5828896ee9a511c46e6b9acef8ab37e3.tar.gz bcm5719-llvm-ff18927c5828896ee9a511c46e6b9acef8ab37e3.zip | |
AsmPrinter: Introduce DIEValue.def, NFC
Use a .def macro file to iterate through the various subclasses of
`DIEValue`.
llvm-svn: 238359
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/DIE.h | 12 | ||||
| -rw-r--r-- | llvm/include/llvm/CodeGen/DIEValue.def | 29 |
2 files changed, 31 insertions, 10 deletions
diff --git a/llvm/include/llvm/CodeGen/DIE.h b/llvm/include/llvm/CodeGen/DIE.h index fcf70977365..b1424585682 100644 --- a/llvm/include/llvm/CodeGen/DIE.h +++ b/llvm/include/llvm/CodeGen/DIE.h @@ -111,16 +111,8 @@ public: class DIEValue { public: enum Type { - isInteger, - isString, - isExpr, - isLabel, - isDelta, - isEntry, - isTypeSignature, - isBlock, - isLoc, - isLocList, +#define HANDLE_DIEVALUE(T) is##T, +#include "llvm/CodeGen/DIEValue.def" }; private: diff --git a/llvm/include/llvm/CodeGen/DIEValue.def b/llvm/include/llvm/CodeGen/DIEValue.def new file mode 100644 index 00000000000..5d7ae2103b4 --- /dev/null +++ b/llvm/include/llvm/CodeGen/DIEValue.def @@ -0,0 +1,29 @@ +//===- llvm/CodeGen/DIEValue.def - DIEValue types ---------------*- 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 all types of DIEValue. +// +//===----------------------------------------------------------------------===// + +#if !(defined HANDLE_DIEVALUE) +#error "Missing macro definition of HANDLE_DIEVALUE" +#endif + +HANDLE_DIEVALUE(Integer) +HANDLE_DIEVALUE(String) +HANDLE_DIEVALUE(Expr) +HANDLE_DIEVALUE(Label) +HANDLE_DIEVALUE(Delta) +HANDLE_DIEVALUE(Entry) +HANDLE_DIEVALUE(TypeSignature) +HANDLE_DIEVALUE(Block) +HANDLE_DIEVALUE(Loc) +HANDLE_DIEVALUE(LocList) + +#undef HANDLE_DIEVALUE |

