[clang] [SystemZ][z/OS] This change adds support for the PPA2 section in zOS (PR #68926)

Ulrich Weigand via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 16 10:57:54 PDT 2023


================
@@ -2267,6 +2268,14 @@ void Clang::AddSystemZTargetArgs(const ArgList &Args,
     CmdArgs.push_back("-mfloat-abi");
     CmdArgs.push_back("soft");
   }
+
+  if (Triple.isOSzOS()) {
+    CmdArgs.push_back("-mllvm");
+    CmdArgs.push_back(
+        Args.MakeArgString(llvm::Twine("-translation-time=")
+                               .concat(llvm::Twine(std::time(nullptr)))
+                               .str()));
+  }
----------------
uweigand wrote:

Is there a good reason for this to be a command-line option, or could this also be a module flag just like the others added above?  Seems odd to use two different mechanisms here.

https://github.com/llvm/llvm-project/pull/68926


More information about the cfe-commits mailing list