[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-22 Thread ChenZheng via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG26f138eed4af: [Debug-Info] implement -gstrict-dwarf (authored by shchenz). Changed prior to commit: https://reviews.llvm.org/D100809?vs=338752=339464#toc Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-22 Thread ChenZheng via Phabricator via cfe-commits
shchenz added a comment. Thanks for your review! @probinson @dblaikie @aprantl Comment at: clang/docs/ClangCommandLineReference.rst:3549-3550 +Use DWARF extensions in later DWARF versions. + .. option:: -gz=, -gz (equivalent to -gz=zlib) probinson wrote: >

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-21 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Sounds good Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100809/new/ https://reviews.llvm.org/D100809

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-21 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a comment. Nit on the description, this patch supports -gstrict-dwarf in the frontend. Comment at: clang/docs/ClangCommandLineReference.rst:3549-3550 +Use DWARF extensions in later DWARF versions. + .. option:: -gz=, -gz (equivalent to -gz=zlib)

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-21 Thread ChenZheng via Phabricator via cfe-commits
shchenz added inline comments. Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3973-3974 + // as true by default. + if (const Arg *A = Args.getLastArg(options::OPT_gstrict_dwarf)) +(void)checkDebugInfoOption(A, Args, D, TC); + if

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-21 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added inline comments. Comment at: clang/docs/ClangCommandLineReference.rst:3549-3550 +Use DWARF extensions in later DWARF versions. + .. option:: -gz=, -gz (equivalent to -gz=zlib) This description is probably backwards/doesn't explicitly clarify

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-21 Thread ChenZheng via Phabricator via cfe-commits
shchenz updated this revision to Diff 338752. shchenz marked 2 inline comments as done. shchenz added a comment. address @dblaikie comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100809/new/ https://reviews.llvm.org/D100809 Files:

[PATCH] D100809: [Debug-Info] implement -gstrict-dwarf

2021-04-21 Thread ChenZheng via Phabricator via cfe-commits
shchenz created this revision. shchenz added reviewers: dblaikie, probinson, aprantl, jsji, Esme, echristo, PowerPC. shchenz added a project: debug-info. Herald added subscribers: jansvoboda11, dexonsmith, dang. shchenz requested review of this revision. Herald added a project: clang. Herald