[lld] r330647 - [COFF] Alias /DEBUG:FULL to /DEBUG

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 23 13:54:08 PDT 2018


Author: zturner
Date: Mon Apr 23 13:54:08 2018
New Revision: 330647

URL: http://llvm.org/viewvc/llvm-project?rev=330647&view=rev
Log:
[COFF] Alias /DEBUG:FULL to /DEBUG

With MSVC linker, /DEBUG is an alias of /DEBUG:FASTLINK, and if
you don't want /DEBUG:FASTLINK you have to explicitly specify
/DEBUG:FULL.

LLD doesn't support /DEBUG:FASTLINK, and so our standard /DEBUG
option is what MSVC calls /DEBUG:FULL.  To provide command line
compatibility with MSVC, we should also support /DEBUG:FULL, and
since it's the same as what LLD already does for /DEBUG, just
alias it.

Modified:
    lld/trunk/COFF/Options.td

Modified: lld/trunk/COFF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Options.td?rev=330647&r1=330646&r2=330647&view=diff
==============================================================================
--- lld/trunk/COFF/Options.td (original)
+++ lld/trunk/COFF/Options.td Mon Apr 23 13:54:08 2018
@@ -76,6 +76,7 @@ def deffile : Joined<["/", "-"], "def:">
     HelpText<"Use module-definition file">;
 
 def debug : F<"debug">, HelpText<"Embed a symbol table in the image">;
+def debug_full : F<"debug:full">, Alias<debug>;
 def debugtype : P<"debugtype", "Debug Info Options">;
 def dll : F<"dll">, HelpText<"Create a DLL">;
 def driver : P<"driver", "Generate a Windows NT Kernel Mode Driver">;




More information about the llvm-commits mailing list