azat abandoned this revision.
azat added a comment.
Closing in favor of https://reviews.llvm.org/D133092
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
___
cfe
azat marked 2 inline comments as done.
azat added inline comments.
Comment at: clang/test/Driver/debug-options-aranges.c:7
+// RUN: %clang -### -g -target x86_64-linux -flto=thin -fuse-ld=lld
-gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=PLUGIN_GARANGE %s
+// GARANGE: -gener
azat updated this revision to Diff 460475.
azat added a comment.
Update the test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/deb
dblaikie added inline comments.
Comment at: clang/test/Driver/debug-options-aranges.c:15
+// RUN: %clang -g -target x86_64-linux -flto=thin -fuse-ld=lld -gdwarf-aranges
%s -o - | llvm-dwarfdump --debug-aranges - | FileCheck -check-prefix=ARANGES %s
+// ARANGES: Address Range Hea
probinson added inline comments.
Comment at: clang/test/Driver/debug-options-aranges.c:7
+// RUN: %clang -### -g -target x86_64-linux -flto=thin -fuse-ld=lld
-gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=PLUGIN_GARANGE %s
+// GARANGE: -generate-arange-section
+// PLUGIN_GARA
azat updated this revision to Diff 460321.
azat added a comment.
Fix clang-format and tiny test refactoring
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
Files:
clang/lib/Driver/ToolChains/CommonArgs.
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
azat updated this revision to Diff 460304.
azat added a comment.
Test cleanup
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
Files:
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/debug-
azat updated this revision to Diff 460302.
azat added a comment.
Add a real check of .debug_aranges in the test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
Files:
clang/lib/Driver/ToolChains/CommonA
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.
Comme
azat updated this revision to Diff 460212.
azat added a comment.
Use --plugin-opt=-generate-arange-section instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133875/new/
https://reviews.llvm.org/D133875
Files:
clang/lib/Driver/ToolChains/Com
azat added a comment.
> I think @MaskRay was saying this doesn't actually work & different flags are
> needed to pass to lld
I thought that @MaskRay was talking about more generic approach that will not
require if for the linker name, and indeed
`--plugin-opt=-generate-arange-section` is bette
dblaikie added a comment.
I think @maskray was saying this doesn't actually work & different flags are
needed to pass to lld - have you tested this end-to-end/with a real
compilation, does that work? (are there other cases that already use `-mllvm`
to pass flags down to lld?)
Repository:
rG
azat created this revision.
Herald added a subscriber: inglorion.
Herald added a project: All.
azat requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
Right now in case of LTO the section is not emited:
$ cat test.c
void __attribu
14 matches
Mail list logo