From 79829a47040512fe54001db839ac59146ca55aec Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Thu, 15 Oct 2020 14:21:56 -0700 Subject: Revert "[clang] Add -fc++-abi= flag for specifying which C++ ABI to use" This reverts commits 683b308c07bf827255fe1403056413f790e03729 and 8487bfd4e9ae186f9f588ef989d27a96cc2438c9. We will go for a more restricted approach that does not give freedom to everyone to change ABIs on whichever platform. See the discussion on https://reviews.llvm.org/D85802. --- clang/lib/Frontend/CompilerInvocation.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 13320eb..a4c56cc 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -3513,15 +3513,6 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Args.hasFlag(OPT_fexperimental_relative_cxx_abi_vtables, OPT_fno_experimental_relative_cxx_abi_vtables, /*default=*/false); - - // The value can be empty, which indicates the system default should be used. - StringRef CXXABI = Args.getLastArgValue(OPT_fcxx_abi_EQ); - if (!CXXABI.empty()) { - if (!TargetCXXABI::isABI(CXXABI)) - Diags.Report(diag::err_invalid_cxx_abi) << CXXABI; - else - Opts.CXXABI = TargetCXXABI::getKind(CXXABI); - } } static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { -- cgit v1.1