[PATCH] D122987: [OpenMP] Make offloading sections have the SHF_EXCLUDE flag

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 09:32:14 PDT 2022


MaskRay added inline comments.


================
Comment at: llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp:452
 
+  if (Name.startswith(".llvm.offloading"))
+    return SectionKind::getExclude();
----------------
`getMetadata() | getExclude()`.

SHF_EXCLUDE is orthogonal to SHF_ALLOC. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122987



More information about the llvm-commits mailing list