[clang][LTO] Remove the use of `--` for arange option

https://reviews.llvm.org/D134668 removed all `--` (double dashes) when using `plugin-opt` to pass linker options and replaced them with `-`. https://reviews.llvm.org/D133092 was committed later but introduced an instance of `--`. This patch replaces the `--` with `-`.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D135400
This commit is contained in:
Qiongsi Wu 2022-10-06 19:56:45 -04:00
parent deba92d6c2
commit b924c8c71d
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
// the way out.
if (Args.hasArg(options::OPT_gdwarf_aranges)) {
CmdArgs.push_back(
Args.MakeArgString("--plugin-opt=-generate-arange-section"));
Args.MakeArgString("-plugin-opt=-generate-arange-section"));
}
// Try to pass driver level flags relevant to LTO code generation down to

View File

@ -3,4 +3,4 @@
/// Check that the linker plugin will get -generate-arange-section.
// RUN: %clang -### -g --target=x86_64-linux -flto -gdwarf-aranges %s 2>&1 | FileCheck %s
// RUN: %clang -### -g --target=x86_64-linux -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck %s
// CHECK: --plugin-opt=-generate-arange-section
// CHECK: "-plugin-opt=-generate-arange-section"