[PATCH] D44384: [DEBUGINFO] Add -no-dwarf-debug-ranges option.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 12 12:55:08 PDT 2018
I don't think it is very bad if check for DW_AT_ranges here just to be sure that we don't miss anything important.
-------------
Best regards,
Alexey Bataev
12.03.2018 15:52, David Blaikie пишет:
>
>
> On Mon, Mar 12, 2018 at 12:52 PM Alexey Bataev via Phabricator
> <reviews at reviews.llvm.org <mailto:reviews at reviews.llvm.org>> wrote:
>
> ABataev added inline comments.
>
>
> ================
> Comment at: test/DebugInfo/X86/no_debug_ranges.ll:4
> +
> +; DISABLED-NOT: {{DW_AT_ranges|.debug_ranges}}
> +; DISABLED: .section .debug_info
> ----------------
> dblaikie wrote:
> > probably check for only .debug_ranges here? (since it's outside
> the debug_info section, so any mention of DW_AT_ranges wouldn't be
> too relevant (short of the abbrev section, but no need to check
> for that when you're checking for the contents of debug_info
> anyway, I think))
> There can be .debug_abbrev section with DW_AT_ranges, we need to
> be sure that no ranges info is generated
>
>
> Right, but the same property is already tested for in the debug_info
> section testing, I think.
>
>
>
>
> ================
> Comment at: test/DebugInfo/X86/no_debug_ranges.ll:6
> +; DISABLED: .section .debug_info
> +; DISABLED-NOT: {{DW_AT_ranges|.debug_ranges}}
> +; DISABLED: .quad .Lfunc_begin0 # DW_AT_low_pc
> ----------------
> dblaikie wrote:
> > probably replace ".debug_ranges" with ".section" here? (ie: make
> sure the low/high pc you're checking for is in the debug_info
> section, and make sure that section doesn't include a DW_AT_ranges)
> Ok
>
>
> Repository:
> rL LLVM
>
> https://reviews.llvm.org/D44384
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freviews.llvm.org%2FD44384&data=02%7C01%7C%7C6f3b03b9a3444c054aea08d58852e00d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636564811876790866&sdata=48m0QgR7C7ERWO02AhQbmxZTTtTAQfx%2B4992f0r4s08%3D&reserved=0>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180312/c31c8974/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180312/c31c8974/attachment.sig>
More information about the llvm-commits
mailing list