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

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 11:26:59 PST 2024


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

>From a0ccb2cbe3882a6ea8bb020dd54460f57dd84a90 Mon Sep 17 00:00:00 2001
From: shami <shami_thoke at yahoo.com>
Date: Thu, 28 Dec 2023 21:29:36 +0530
Subject: [PATCH] LLVM_FAULTMAPS section can be put after the DWARF section.

---
 llvm/lib/MC/MCMachOStreamer.cpp | 4 ++++
 1 file changed, 4 insertions(+)

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;
 }
 



More information about the cfe-commits mailing list