summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-08-21 06:13:34 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-08-21 06:13:34 +0000
commitd7d43dc435f24e611d9d8090f6ca80a4998efd31 (patch)
tree7ed3dfa1f15110ffc6301afbaadfed46ef826def /include
parent5bdf397e25bf0e5a6473f44d49a04e8ff184c442 (diff)
downloadllvm-d7d43dc435f24e611d9d8090f6ca80a4998efd31.tar.gz
llvm-d7d43dc435f24e611d9d8090f6ca80a4998efd31.tar.bz2
llvm-d7d43dc435f24e611d9d8090f6ca80a4998efd31.tar.xz
DebugInfo: Do not use the DWARF Version for the .debug_pubnames or .debug_pubtypes version field
Summary: LLVM would generate DWARF with version 3 in the .debug_pubname and .debug_pubtypes version fields. This would lead SGI dwarfdump to fail parsing the DWARF with (in the instance of .debug_pubnames) would exit with: dwarfdump ERROR: dwarf_get_globals: DW_DLE_PUBNAMES_VERSION_ERROR (123) This fixes PR16950. Reviewers: echristo, dblaikie Reviewed By: echristo CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1454 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Dwarf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h
index d0e2322b2d..d857341ef5 100644
--- a/include/llvm/Support/Dwarf.h
+++ b/include/llvm/Support/Dwarf.h
@@ -56,7 +56,9 @@ enum llvm_dwarf_constants {
DW_TAG_user_base = 0x1000, // Recommended base for user tags.
- DW_CIE_VERSION = 1 // Common frame information version.
+ 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.
};