summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 0e51ca40141..66fbcb2e4da 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -1162,6 +1162,13 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
ctx.setSwapRunFromNet(true);
break;
+ case OPT_profile:
+ // /profile implies /opt:ref, /opt:noicf, /incremental:no and /fixed:no.
+ ctx.setDeadStripping(true);
+ ctx.setBaseRelocationEnabled(false);
+ ctx.setDynamicBaseEnabled(false);
+ break;
+
case OPT_implib:
ctx.setOutputImportLibraryPath(inputArg->getValue());
break;
OpenPOWER on IntegriCloud