[clang] caaaebc - [AIX] Actually push back "-mabi=vec-extabi" when option is on.

Zarko Todorovski via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 29 11:13:42 PST 2021


Author: Zarko Todorovski
Date: 2021-01-29T14:12:46-05:00
New Revision: caaaebcde462bf681498ce85c2659d683a07fc87

URL: https://github.com/llvm/llvm-project/commit/caaaebcde462bf681498ce85c2659d683a07fc87
DIFF: https://github.com/llvm/llvm-project/commit/caaaebcde462bf681498ce85c2659d683a07fc87.diff

LOG: [AIX] Actually push back "-mabi=vec-extabi" when option is on.

Accidentaly ommitted the portion of pushing back the option in
https://reviews.llvm.org/D94986

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/Clang.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index b0379aece75b..431f534c38fe 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -4684,6 +4684,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
           << A->getSpelling() << RawTriple.str();
     if (A->getOption().getID() == options::OPT_mabi_EQ_vec_default)
       D.Diag(diag::err_aix_default_altivec_abi);
+    if (A->getOption().getID() == options::OPT_mabi_EQ_vec_extabi)
+      CmdArgs.push_back("-mabi=vec-extabi");
   }
 
   if (Arg *A = Args.getLastArg(options::OPT_Wframe_larger_than_EQ)) {


        


More information about the cfe-commits mailing list