r210936 - Copy the documentation of -fstandalone-debug from the man page to the user

Sean Silva chisophugis at gmail.com
Fri Jun 20 17:57:57 PDT 2014


On Sun, Jun 15, 2014 at 2:07 PM, Alp Toker <alp at nuanti.com> wrote:

>
> On 14/06/2014 00:12, Adrian Prantl wrote:
>
>> Author: adrian
>> Date: Fri Jun 13 16:12:31 2014
>> New Revision: 210936
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=210936&view=rev
>> Log:
>> Copy the documentation of -fstandalone-debug from the man page to the user
>> manual.
>>
>
> Hi Adrian,
>
> It bothers me that we now have two copies of this documentation in-tree.
>
> There are readily available tools to generate man pages from rst files.
> The cost of hooking a doc tool up to the build system is certainly lower
> than having skilled compiler engineers maintain two divergent copies of the
> documentation (history shows we have a hard enough time maintaining a
> single set of quality docs, let alone two).
>
> Do you have a timeline to remove one of the duplicate copies?
>

Well, AFAICT the only reason it makes sense to add an option to
UsersManual.rst is so that it has an online presence and shows up on web
searches. We can solve this by just putting the man page online (and then
just linking to it from UsersManual.rst if we want).

-- Sean Silva


>
> Alp.
>
>
>
>
>
>> rdar://problem/17307006
>>
>> Modified:
>>      cfe/trunk/docs/UsersManual.rst
>>
>> Modified: cfe/trunk/docs/UsersManual.rst
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/
>> UsersManual.rst?rev=210936&r1=210935&r2=210936&view=diff
>> ============================================================
>> ==================
>> --- cfe/trunk/docs/UsersManual.rst (original)
>> +++ cfe/trunk/docs/UsersManual.rst Fri Jun 13 16:12:31 2014
>> @@ -1298,6 +1298,22 @@ below. If multiple flags are present, th
>>     doesn't contain any other data (e.g. description of local variables or
>>     function parameters).
>>   +.. option:: -fstandalone-debug -fno-standalone-debug
>> +
>> +  Clang supports a number of optimizations to reduce the size of debug
>> +  information in the binary. They work based on the assumption that
>> +  the debug type information can be spread out over multiple
>> +  compilation units.  For instance, Clang will not emit type
>> +  definitions for types that are not needed by a module and could be
>> +  replaced with a forward declaration.  Further, Clang will only emit
>> +  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.
>> +  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:: -g
>>       Generate complete debug info.
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
> --
> http://www.nuanti.com
> the browser experts
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140620/2abe89a1/attachment.html>


More information about the cfe-commits mailing list