[PATCH] D105452: [lld][MachO] Code cleanup
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 14 04:33:49 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd21772fa21de: [lld][MachO] Code cleanup (authored by alexander-shaposhnikov).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105452/new/
https://reviews.llvm.org/D105452
Files:
lld/MachO/Driver.cpp
Index: lld/MachO/Driver.cpp
===================================================================
--- lld/MachO/Driver.cpp
+++ lld/MachO/Driver.cpp
@@ -1142,10 +1142,8 @@
config->mapFile = args.getLastArgValue(OPT_map);
config->outputFile = args.getLastArgValue(OPT_o, "a.out");
- if (const Arg *arg = args.getLastArg(OPT_final_output))
- config->finalOutput = arg->getValue();
- else
- config->finalOutput = config->outputFile;
+ config->finalOutput =
+ args.getLastArgValue(OPT_final_output, config->outputFile);
config->astPaths = args.getAllArgValues(OPT_add_ast_path);
config->headerPad = args::getHex(args, OPT_headerpad, /*Default=*/32);
config->headerPadMaxInstallNames =
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105452.358560.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210714/89d02f89/attachment.bin>
More information about the llvm-commits
mailing list