COFF: Add /nosymtab command line option.
This is an LLD extension to MSVC link.exe command line. MSVC linker
does not write symbol tables for executables. We do unless no /debug
option is given.
There's a situation that we want to enable debug info but don't want
to emit the symbol table. One example is when we are comparing output
file size. With this patch, you can tell the linker to not create
a symbol table by just specifying /nosymtab.
llvm-svn: 248225
diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td
index 2402b80..a21b8de 100644
--- a/lld/COFF/Options.td
+++ b/lld/COFF/Options.td
@@ -86,6 +86,9 @@
def help : F<"help">;
def help_q : Flag<["/?", "-?"], "">, Alias<help>;
+// LLD extensions
+def nosymtab : F<"nosymtab">;
+
// Flags for debugging
def lldmap : Joined<["/", "-"], "lldmap:">;