projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2af4385
)
[NFC] Simplify /noimplib argument logic
author
Tobias Hieta
<tobias.hieta@ubisoft.com>
Wed, 13 Apr 2022 14:39:22 +0000
(16:39 +0200)
committer
Tobias Hieta
<tobias.hieta@ubisoft.com>
Wed, 13 Apr 2022 14:40:30 +0000
(16:40 +0200)
lld/COFF/Driver.cpp
patch
|
blob
|
history
diff --git
a/lld/COFF/Driver.cpp
b/lld/COFF/Driver.cpp
index
4ae75de
..
d1c68d1
100644
(file)
--- a/
lld/COFF/Driver.cpp
+++ b/
lld/COFF/Driver.cpp
@@
-1673,8
+1673,7
@@
void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
if (auto *arg = args.getLastArg(OPT_implib))
config->implib = arg->getValue();
- if (auto *arg = args.getLastArg(OPT_noimplib))
- config->noimplib = true;
+ config->noimplib = args.hasArg(OPT_noimplib);
// Handle /opt.
bool doGC = debug == DebugKind::None || args.hasArg(OPT_profile);