llvm.org GIT mirror llvm / 11eaab3
Merging r355607: ------------------------------------------------------------------------ r355607 | petarj | 2019-03-07 08:31:08 -0800 (Thu, 07 Mar 2019) | 11 lines [DebugInfo] Fix the type of the formated variable Change the format type of *Personality and *LSDAAddress to PRIx64 since they are of type uint64_t. The problem was detected on mips builds, where it was printing junk values and causing test failure. Patch by Milos Stojanovic. Differential Revision: https://reviews.llvm.org/D58451 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_80@359851 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 3 months ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
300300 OS << format(" Data alignment factor: %d\n", (int32_t)DataAlignmentFactor);
301301 OS << format(" Return address column: %d\n", (int32_t)ReturnAddressRegister);
302302 if (Personality)
303 OS << format(" Personality Address: %08x\n", *Personality);
303 OS << format(" Personality Address: %016" PRIx64 "\n", *Personality);
304304 if (!AugmentationData.empty()) {
305305 OS << " Augmentation data: ";
306306 for (uint8_t Byte : AugmentationData)
319319 (uint32_t)InitialLocation,
320320 (uint32_t)InitialLocation + (uint32_t)AddressRange);
321321 if (LSDAAddress)
322 OS << format(" LSDA Address: %08x\n", *LSDAAddress);
322 OS << format(" LSDA Address: %016" PRIx64 "\n", *LSDAAddress);
323323 CFIs.dump(OS, MRI, IsEH);
324324 OS << "\n";
325325 }
77 # CHECK: Code alignment factor: 1
88 # CHECK: Data alignment factor: -4
99 # CHECK: Return address column: 8
10 # CHECK: Personality Address: 004025d7
10 # CHECK: Personality Address: 00000000004025d7
1111 # CHECK: Augmentation data: 00 D7 25 40 00 00 00
1212
1313 # CHECK: DW_CFA_def_cfa: reg4 +4
1616 # CHECK: DW_CFA_nop:
1717
1818 # CHECK: 00000020 0000001c 00000024 FDE cie=00000024 pc=00401410...00401488
19 # CHECK: LSDA Address: 00406000
19 # CHECK: LSDA Address: 0000000000406000
2020 # CHECK: DW_CFA_advance_loc: 1
2121 # CHECK: DW_CFA_def_cfa_offset: +8
2222 # CHECK: DW_CFA_offset: reg5 -8