[llvm-branch-commits] [clang] a4a4036 - [AIX] Actually push back "-mabi=vec-extabi" when option is on.

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 15 14:15:25 PST 2021


Author: Zarko Todorovski
Date: 2021-02-15T14:14:54-08:00
New Revision: a4a4036d7aef942b6ff3a8c594937c0e0f6512b0

URL: https://github.com/llvm/llvm-project/commit/a4a4036d7aef942b6ff3a8c594937c0e0f6512b0
DIFF: https://github.com/llvm/llvm-project/commit/a4a4036d7aef942b6ff3a8c594937c0e0f6512b0.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

(cherry picked from commit caaaebcde462bf681498ce85c2659d683a07fc87)

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 fdb8a58cd1b3..d75eb0c58d8b 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 llvm-branch-commits mailing list