[AIX]: Fix option processing for -b
authorEttore Tiotto <etiotto@ca.ibm.com>
Mon, 9 Aug 2021 23:52:31 +0000 (19:52 -0400)
committerEttore Tiotto <etiotto@ca.ibm.com>
Mon, 9 Aug 2021 23:52:31 +0000 (19:52 -0400)
commit41e3ac398c3ae9dfba5a57d80c420c122c1ec700
treef0ac37f66f8c73b8688bbca6532f8cb2a1ecb4a1
parenta35008955fa606487f79a050f5cc80fc7ee84dda
[AIX]: Fix option processing for -b

Code added by D106688 has a problem. It passes the option -bxyz to the system linker as -b xyz xyz (duplication of the string 'xyz' is incorrect). This patch fixes that oversight.

Reviewed by: hubert.reinterpretcast, jsji

Differential Revision: https://reviews.llvm.org/D107786
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/Xlinker-args.c