summaryrefslogtreecommitdiff
path: root/compiler/llvmGen/LlvmCodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/llvmGen/LlvmCodeGen')
-rw-r--r--compiler/llvmGen/LlvmCodeGen/Data.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/llvmGen/LlvmCodeGen/Data.hs b/compiler/llvmGen/LlvmCodeGen/Data.hs
index 3c1af4f587..0f0ca6eeaf 100644
--- a/compiler/llvmGen/LlvmCodeGen/Data.hs
+++ b/compiler/llvmGen/LlvmCodeGen/Data.hs
@@ -59,6 +59,7 @@ isSecConstant (Section t _) = case t of
ReadOnlyData -> True
RelocatableReadOnlyData -> True
ReadOnlyData16 -> True
+ CString -> True
Data -> False
UninitialisedData -> False
(OtherSection _) -> False
@@ -72,6 +73,7 @@ llvmSectionType t = case t of
ReadOnlyData16 -> fsLit ".rodata.cst16"
Data -> fsLit ".data"
UninitialisedData -> fsLit ".bss"
+ CString -> fsLit ".cstring"
(OtherSection _) -> panic "llvmSectionType: unknown section type"
-- | Format a Cmm Section into a LLVM section name