diff options
| author | Amjad Aboud <amjad.aboud@intel.com> | 2017-02-09 22:07:24 +0000 |
|---|---|---|
| committer | Amjad Aboud <amjad.aboud@intel.com> | 2017-02-09 22:07:24 +0000 |
| commit | 546bc1103b682c4ea66116ddaf0fc6fdf0a8bdd5 (patch) | |
| tree | aab363349d875697db614ab98a7324d01b777a5c /clang/docs | |
| parent | ef089bdb4ba4dbeee0cd519a352fee93f3a8f09c (diff) | |
| download | bcm5719-llvm-546bc1103b682c4ea66116ddaf0fc6fdf0a8bdd5.tar.gz bcm5719-llvm-546bc1103b682c4ea66116ddaf0fc6fdf0a8bdd5.zip | |
[DebugInfo] Added support to Clang FE for generating debug info for preprocessor macros.
Added "-fdebug-macro" flag (and "-fno-debug-macro" flag) to enable (and to disable) emitting macro debug info.
Added CC1 "-debug-info-macro" flag that enables emitting macro debug info.
Differential Revision: https://reviews.llvm.org/D16135
llvm-svn: 294637
Diffstat (limited to 'clang/docs')
| -rw-r--r-- | clang/docs/UsersManual.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 7a4486436c6..17f26d1e8cd 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -1696,6 +1696,22 @@ below. If multiple flags are present, the last one is used. Generate complete debug info. +Controlling Macro Debug Info Generation +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Debug info for C preprocessor macros increases the size of debug information in +the binary. Macro debug info generated by Clang can be controlled by the flags +listed below. + +.. option:: -fdebug-macro + + Generate debug info for preprocessor macros. This flag is discarded when + **-g0** is enabled. + +.. option:: -fno-debug-macro + + Do not generate debug info for preprocessor macros (default). + Controlling Debugger "Tuning" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |

