summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-11-15 10:28:04 +0100
committerMatthias Braun <matze@braunis.de>2012-11-15 10:32:29 +0100
commitab9dbf9337f1aa1b55db1f7196f365489f95b2ca (patch)
tree5cab84fd605655560e18c0ed19619509f674e141 /ir/be/begnuas.h
parent862274436245bb1a19af40de3563c637e7116101 (diff)
begnuas: simplify, add be_gas_emit_string()
simplify it by always using .asciz instead of sometimes .string/.ascii. All new gcc/binutils understand .asciz.
Diffstat (limited to 'ir/be/begnuas.h')
-rw-r--r--ir/be/begnuas.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/begnuas.h b/ir/be/begnuas.h
index 9f0bd08..8536679 100644
--- a/ir/be/begnuas.h
+++ b/ir/be/begnuas.h
@@ -114,6 +114,11 @@ void be_gas_emit_block_name(const ir_node *block);
void be_gas_begin_block(const ir_node *block, bool needs_label);
/**
+ * emit a string (takes care of escaping special chars)
+ */
+void be_gas_emit_cstring(const char *string);
+
+/**
* Starts emitting a compilation unit. This emits:
* - global assembler snippets
* - debug info