I have a few questions about the LLVM assembly string constant syntax. The syntax that I am referring to is this:
@helloWorldString = private constant [13 x i8] c"hello world\0A\00"
In particular I am talking about the c"hello world\0A\00" form.
I have two questions:
1) Where is this syntax documented?
2) How can I split a long string constant into several lines?
It isn’t documented, but
c"hello world\0A\00"pretty much demonstrates the complete extent of the syntax. There’s no way to split the string into multiple lines. There really isn’t any careful documentation of the syntax because it’s it’s pretty straightforward, and there’s only one parser.