[Debugify] Expose original debug info preservation check as CC1 option
authorDjordje Todorovic <djtodoro@cisco.com>
Thu, 11 Mar 2021 14:55:13 +0000 (06:55 -0800)
committerDjordje Todorovic <djtodoro@cisco.com>
Thu, 25 Mar 2021 12:29:42 +0000 (05:29 -0700)
commit8420a5332486c682c1aaddbcb58a571869d19832
tree95a9a14a53b5ad2258d12c7407c81a11af7f3701
parent5ab3bc0683c0ee7848b3fe991c35d73d0c9a603e
[Debugify] Expose original debug info preservation check as CC1 option

In order to test the preservation of the original Debug Info metadata
in your projects, a front end option could be very useful, since users
usually report that a concrete entity (e.g. variable x, or function fn2())
is missing debug info. The [0] is an example of running the utility
on GDB Project.

This depends on: D82546 and D82545.

Differential Revision: https://reviews.llvm.org/D82547
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Basic/CodeGenOptions.h
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/verify-debug-info-preservation.c [new file with mode: 0644]
llvm/docs/HowToUpdateDebugInfo.rst