Debug Info: Move the constant for Debug Info Version from Dwarf.h to Metadata.h.
authorManman Ren <manman.ren@gmail.com>
Mon, 2 Dec 2013 20:09:52 +0000 (20:09 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 2 Dec 2013 20:09:52 +0000 (20:09 +0000)
Suggested by Eric.

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

include/llvm/IR/Metadata.h
include/llvm/Support/Dwarf.h

index 49eb89503147d8c21f6ca3f884c61ce5ec9eda7a..9659c2e05c38287d5ad15614dade62d31f09d5a6 100644 (file)
@@ -28,6 +28,10 @@ template<typename ValueSubClass, typename ItemParentClass>
   class SymbolTableListTraits;
 
 
+enum LLVMConstants LLVM_ENUM_INT_TYPE(uint32_t) {
+  DEBUG_METADATA_VERSION = 1  // Current debug info version number.
+};
+
 //===----------------------------------------------------------------------===//
 /// MDString - a single uniqued string.
 /// These are used to efficiently contain a byte sequence for metadata.
index e1a4dc0eb7aaf5c445b3d539155e6803c2bf95f5..23bbd1c384cf3ba539332038269d2a27ed127b84 100644 (file)
@@ -57,7 +57,6 @@ 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.