[PATCH] D133875: [clang] fix generation of .debug_aranges with LTO (resubmit)
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 14 14:23:23 PDT 2022
MaskRay added inline comments.
================
Comment at: clang/test/Driver/debug-options-aranges.c:1
+// Check that lld will emit dwarf aranges.
+
----------------
The message is outdated now. This just checks how -gdwarf-aranges ias passed to the compiler and linker.
================
Comment at: clang/test/Driver/debug-options-aranges.c:3
+
+// RUN: %clang -### -target x86_64-unknown-linux -c -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=GARANGE %s
+// RUN: %clang -### -target x86_64-unknown-linux -flto -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=PLUGIN_GARANGE %s
----------------
`--target=x86_64`
================
Comment at: clang/test/Driver/debug-options-aranges.c:6
+// RUN: %clang -### -target x86_64-unknown-linux -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=PLUGIN_GARANGE %s
+//
+// GARANGE: -generate-arange-section
----------------
delete empty `//`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
More information about the cfe-commits
mailing list