[PATCH] D40478: Added control flow architecture protection Flag

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 18 13:13:34 PST 2017


craig.topper added inline comments.


================
Comment at: lib/CodeGen/CGCall.cpp:1737
                            llvm::toStringRef(CodeGenOpts.NoSignedZeros));
+    FuncAttrs.addAttribute("shstk-compatible",
+                           llvm::toStringRef(CodeGenOpts.ShstkCompatible));
----------------
If the command line option is intended to be target independent, shouldn't these generically named?


================
Comment at: lib/CodeGen/CodeGenFunction.cpp:876
   // Apply xray attributes to the function (as a string, for now)
-  if (D && ShouldXRayInstrumentFunction()) {
+  bool InstrumentXray = ShouldXRayInstrumentFunction();
+  if (D && InstrumentXray) {
----------------
Why this change?


Repository:
  rL LLVM

https://reviews.llvm.org/D40478





More information about the cfe-commits mailing list