OSDN Git Service

[DebugInfo] Change default value of FDEPointerEncoding
authorMaksim Panchenko <maks@fb.com>
Mon, 9 Jul 2018 18:45:38 +0000 (18:45 +0000)
committerMaksim Panchenko <maks@fb.com>
Mon, 9 Jul 2018 18:45:38 +0000 (18:45 +0000)
Summary:
If the encoding is not specified in CIE augmentation string, then it
should be DW_EH_PE_absptr instead of DW_EH_PE_omit.

Reviewers: ruiu, MaskRay, plotfi, rafauler

Reviewed By: MaskRay

Subscribers: rafauler, JDevlieghere, llvm-commits

Differential Revision: https://reviews.llvm.org/D49000

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

lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

index 6c61763..7333339 100644 (file)
@@ -399,7 +399,7 @@ void DWARFDebugFrame::parse(DWARFDataExtractor Data) {
 
       // Parse the augmentation data for EH CIEs
       StringRef AugmentationData("");
-      uint32_t FDEPointerEncoding = DW_EH_PE_omit;
+      uint32_t FDEPointerEncoding = DW_EH_PE_absptr;
       uint32_t LSDAPointerEncoding = DW_EH_PE_omit;
       Optional<uint64_t> Personality;
       Optional<uint32_t> PersonalityEncoding;