[PATCH] D133875: [clang] fix generation of .debug_aranges with LTO (resubmit)

Azat Khuzhin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 23:40:46 PDT 2022


azat marked an inline comment as done.
azat added a comment.

> The message is outdated now.

Actually even before it does not check that `.debug_aranges` had been emitted.

> This just checks how -gdwarf-aranges ias passed to the compiler and linker.

I've improved the test (though maybe `Address Range Header` match requires regex?)



================
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
----------------
MaskRay wrote:
> `--target=x86_64`
> error: 'x86_64': unable to pass LLVM bit-code files to linker


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