about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/debuginfo
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-13 18:39:03 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-13 18:39:03 +0000
commit6ff363f0ffdb47568952cee7e23f3fc76c04463c (patch)
tree8c1b03e2c2eddfce121dc22a27bda9843a54d2cc /compiler/rustc_codegen_cranelift/src/debuginfo
parent25acbbd12f87ed9e3eef13c095083c4693da2e8f (diff)
parent659243d85c7489412bd0faa1c068d904a6042941 (diff)
downloadrust-6ff363f0ffdb47568952cee7e23f3fc76c04463c.tar.gz
rust-6ff363f0ffdb47568952cee7e23f3fc76c04463c.zip
Merge commit '659243d85c7489412bd0faa1c068d904a6042941' into sync_cg_clif-2024-07-13
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_cranelift/src/debuginfo/object.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/debuginfo/object.rs b/compiler/rustc_codegen_cranelift/src/debuginfo/object.rs
index 65f4c67b21f..1c6e471cc87 100644
--- a/compiler/rustc_codegen_cranelift/src/debuginfo/object.rs
+++ b/compiler/rustc_codegen_cranelift/src/debuginfo/object.rs
@@ -39,7 +39,13 @@ impl WriteDebugInfo for ObjectProduct {
         let section_id = self.object.add_section(
             segment,
             name,
-            if id == SectionId::EhFrame { SectionKind::ReadOnlyData } else { SectionKind::Debug },
+            if id == SectionId::DebugStr || id == SectionId::DebugLineStr {
+                SectionKind::DebugString
+            } else if id == SectionId::EhFrame {
+                SectionKind::ReadOnlyData
+            } else {
+                SectionKind::Debug
+            },
         );
         self.object
             .section_mut(section_id)