diff options
author | Leonard Chan <leonardchan@google.com> | 2020-10-15 14:21:56 -0700 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2020-10-15 14:24:38 -0700 |
commit | 79829a47040512fe54001db839ac59146ca55aec (patch) | |
tree | bf785cd8db647fc67698dd9839fc33365694c876 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1992e30c2d751f6f1f6ad5190f84e37dece04f7f (diff) | |
download | llvm-79829a47040512fe54001db839ac59146ca55aec.zip llvm-79829a47040512fe54001db839ac59146ca55aec.tar.gz llvm-79829a47040512fe54001db839ac59146ca55aec.tar.bz2 |
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.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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) { |