Debug Info: add a constant for debug info version number.
authorManman Ren <manman.ren@gmail.com>
Fri, 22 Nov 2013 19:41:59 +0000 (19:41 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 22 Nov 2013 19:41:59 +0000 (19:41 +0000)
This will be used to output the debug info version number as a module flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195494 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Dwarf.h

index 23bbd1c384cf3ba539332038269d2a27ed127b84..e1a4dc0eb7aaf5c445b3d539155e6803c2bf95f5 100644 (file)
@@ -57,6 +57,7 @@ enum LLVMConstants LLVM_ENUM_INT_TYPE(uint32_t) {
   DW_TAG_user_base = 0x1000, // Recommended base for user tags.
 
   DWARF_VERSION = 4,       // Default dwarf version we output.
+  DEBUG_INFO_VERSION = 1,  // Current debug info version number.
   DW_CIE_VERSION = 1,      // Common frame information version.
   DW_PUBTYPES_VERSION = 2, // Section version number for .debug_pubtypes.
   DW_PUBNAMES_VERSION = 2, // Section version number for .debug_pubnames.