[PATCH] D137753: [Clang][AIX][p]Enable -p Functionality

David Tenty via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 25 12:41:28 PST 2023


daltenty accepted this revision.
daltenty added a comment.
This revision is now accepted and ready to land.

LGTM, with small nit to address before commit



================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:6287-6292
     if (!TC.getTriple().isOSAIX() && !TC.getTriple().isOSOpenBSD()) {
       D.Diag(diag::err_drv_unsupported_opt_for_target)
           << A->getAsString(Args) << TripleStr;
     }
+    if (TC.getTriple().isOSAIX())
+      CmdArgs.push_back("-pg");
----------------
nit: we can save our selves a query and clarify by writing this as if-elseif


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137753/new/

https://reviews.llvm.org/D137753



More information about the cfe-commits mailing list