diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-03-24 18:46:34 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-03-24 18:46:34 +0000 |
commit | d31d304f83f9c8df6870057509414b8d004bc8da (patch) | |
tree | 361127d12bd669c49b3adea425e0334ffcb8c147 /include/llvm/MC/MCAsmInfo.h | |
parent | b4ac342ea0a416f463f47bf40c0bd7448844e00b (diff) | |
download | llvm-d31d304f83f9c8df6870057509414b8d004bc8da.tar.gz llvm-d31d304f83f9c8df6870057509414b8d004bc8da.tar.bz2 llvm-d31d304f83f9c8df6870057509414b8d004bc8da.tar.xz |
Clean up assembly statement separator support.
The MC asm lexer wasn't honoring a non-default (anything but ';') statement
separator. Fix that, and generalize a bit to support multi-character
statement separators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 7e24a3d1d3..70ad231301 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -66,10 +66,9 @@ namespace llvm { /// relative expressions. const char *PCSymbol; // Defaults to "$". - /// SeparatorChar - This character, if specified, is used to separate - /// instructions from each other when on the same line. This is used to - /// measure inline asm instructions. - char SeparatorChar; // Defaults to ';' + /// SeparatorString - This string, if specified, is used to separate + /// instructions from each other when on the same line. + const char *SeparatorString; // Defaults to ';' /// CommentColumn - This indicates the comment num (zero-based) at /// which asm comments should be printed. @@ -350,8 +349,8 @@ namespace llvm { const char *getPCSymbol() const { return PCSymbol; } - char getSeparatorChar() const { - return SeparatorChar; + const char *getSeparatorString() const { + return SeparatorString; } unsigned getCommentColumn() const { return CommentColumn; |