DIEValue.def 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //===- llvm/CodeGen/DIEValue.def - DIEValue types ---------------*- 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. //
  9. // Macros for running through all types of DIEValue.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #if !(defined HANDLE_DIEVALUE || defined HANDLE_DIEVALUE_SMALL || \
  13. defined HANDLE_DIEVALUE_LARGE)
  14. #error "Missing macro definition of HANDLE_DIEVALUE"
  15. #endif
  16. // Handler for all values.
  17. #ifndef HANDLE_DIEVALUE
  18. #define HANDLE_DIEVALUE(T)
  19. #endif
  20. // Handler for small values.
  21. #ifndef HANDLE_DIEVALUE_SMALL
  22. #define HANDLE_DIEVALUE_SMALL(T) HANDLE_DIEVALUE(T)
  23. #endif
  24. // Handler for large values.
  25. #ifndef HANDLE_DIEVALUE_LARGE
  26. #define HANDLE_DIEVALUE_LARGE(T) HANDLE_DIEVALUE(T)
  27. #endif
  28. HANDLE_DIEVALUE_SMALL(Integer)
  29. HANDLE_DIEVALUE_SMALL(String)
  30. HANDLE_DIEVALUE_SMALL(Expr)
  31. HANDLE_DIEVALUE_SMALL(Label)
  32. HANDLE_DIEVALUE_LARGE(BaseTypeRef)
  33. HANDLE_DIEVALUE_LARGE(Delta)
  34. HANDLE_DIEVALUE_SMALL(Entry)
  35. HANDLE_DIEVALUE_LARGE(Block)
  36. HANDLE_DIEVALUE_LARGE(Loc)
  37. HANDLE_DIEVALUE_SMALL(LocList)
  38. HANDLE_DIEVALUE_LARGE(InlineString)
  39. HANDLE_DIEVALUE_LARGE(AddrOffset)
  40. #undef HANDLE_DIEVALUE
  41. #undef HANDLE_DIEVALUE_SMALL
  42. #undef HANDLE_DIEVALUE_LARGE