[llvm] LLVM_FAULTMAPS section can be put after the DWARF section. (PR #77107)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 07:19:23 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mc

Author: None (shamithoke)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/77107.diff


1 Files Affected:

- (modified) llvm/lib/MC/MCMachOStreamer.cpp (+4) 


``````````diff
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index d7d343f15eaa61..61ab944ae44fbb 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -160,6 +160,10 @@ static bool canGoAfterDWARF(const MCSectionMachO &MSec) {
     return true;
   if (SegName == "__LLVM" && SecName == "__cg_profile")
     return true;
+
+  if (SegName == "__LLVM_FAULTMAPS" && SecName == "__llvm_faultmaps")
+    return true;
+
   return false;
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list