[DebugInfo]: Reorderd the emission of debug_str section.
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 7 Feb 2020 04:48:54 +0000 (10:18 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Fri, 7 Feb 2020 05:45:55 +0000 (11:15 +0530)
commit84e5760a1637d89c6c90a218abfe6d4d0ce85c97
tree861321ca9022995383f4deefd20e2d89d9d9c952
parentae4e49868ac35dda3b02441a11f3cc3edf4d383b
[DebugInfo]: Reorderd the emission of debug_str section.

Summary:
This patch reorders the emission of debug_str section, so that
string can come after macros.
This is necessary for macro forms like DW_MACRO_define_strp,
which emits macro as a string in debug_str section.
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/MIR/X86/dbg-stack-value-range.mir
llvm/test/DebugInfo/X86/stringpool.ll