diff options
| author | Adrian Prantl <aprantl@apple.com> | 2014-06-13 23:35:54 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2014-06-13 23:35:54 +0000 |
| commit | 4ad03dc355d29a3156a04f1d3c763960dcc3cd64 (patch) | |
| tree | 0810b9b242a5aac5eaa15be4df2847d2847f168c /clang | |
| parent | 8aae4f43127d6d6e80f7f92fc31c58a79cbbfce0 (diff) | |
| download | bcm5719-llvm-4ad03dc355d29a3156a04f1d3c763960dcc3cd64.tar.gz bcm5719-llvm-4ad03dc355d29a3156a04f1d3c763960dcc3cd64.zip | |
Document Darwin-specific defaults.
llvm-svn: 210958
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/docs/UsersManual.rst | 10 | ||||
| -rw-r--r-- | clang/docs/tools/clang.pod | 5 |
2 files changed, 11 insertions, 4 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index d6e30bb92cf..63154a8d7bd 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -1298,7 +1298,7 @@ below. If multiple flags are present, the last one is used. doesn't contain any other data (e.g. description of local variables or function parameters). -.. option:: -fstandalone-debug **-fno-standalone-debug** +.. option:: -fstandalone-debug Clang supports a number of optimizations to reduce the size of debug information in the binary. They work based on the assumption that @@ -1309,11 +1309,17 @@ below. If multiple flags are present, the last one is used. type info for a dynamic C++ class in the module that contains the vtable for the class. - The ``-fstandalone-debug`` option turns off these optimizations. + The **-fstandalone-debug** option turns off these optimizations. This is useful when working with 3rd-party libraries that don't come with debug information. Note that Clang will never emit type information for types that are not referenced at all by the program. +.. option:: -fno-standalone-debug + + On Darwin **-fstandalone-debug** is enabled by default. The + **-fno-standalone-debug** option can be used to get to turn on the + vtable-based optimization described above. + .. option:: -g Generate complete debug info. diff --git a/clang/docs/tools/clang.pod b/clang/docs/tools/clang.pod index 6ccdbba1bb8..f7d2eaf683c 100644 --- a/clang/docs/tools/clang.pod +++ b/clang/docs/tools/clang.pod @@ -324,8 +324,9 @@ C++ class in the module that contains the vtable for the class. The B<-fstandalone-debug> option turns off these optimizations. This is useful when working with 3rd-party libraries that don't come with -debug information. Note that Clang will never emit type information -for types that are not referenced at all by the program. +debug information. This is the default on Darwin. Note that Clang +will never emit type information for types that are not referenced at +all by the program. =item B<-fexceptions> |

