[PATCH] D133092: [clang] fix generation of .debug_aranges with LTO
Azat Khuzhin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 7 23:58:17 PDT 2022
azat added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:512-513
+ // handle SCE (like in Clang.cpp::renderDebugOptions())
+ bool NeedAranges = Args.hasArg(options::OPT_gdwarf_aranges);
+ if (NeedAranges) {
+ CmdArgs.push_back(Args.MakeArgString("-mllvm"));
----------------
dblaikie wrote:
>
I've added extra `NeedAranges` like in `clang/lib/Driver/ToolChains/Clang.cpp` for better grep'ability, but no problem, I will change this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133092/new/
https://reviews.llvm.org/D133092
More information about the cfe-commits
mailing list