diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-22 22:19:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-22 22:19:53 +0000 |
commit | e07b75e069969558c3fbb2f5bfb9a652f6ea1d6b (patch) | |
tree | 082ace8cf4a6c1bb02afbf7a6532370b7d6bef71 /include/llvm | |
parent | bea77bb6e82e7f7feae71b2cafea4f6a9f6098c0 (diff) | |
download | external_llvm-e07b75e069969558c3fbb2f5bfb9a652f6ea1d6b.zip external_llvm-e07b75e069969558c3fbb2f5bfb9a652f6ea1d6b.tar.gz external_llvm-e07b75e069969558c3fbb2f5bfb9a652f6ea1d6b.tar.bz2 |
allow target-specific label suffixes, patch by Yuri Gribov!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index 43952e0..b305772 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -72,6 +72,9 @@ namespace llvm { /// assembler. const char *CommentString; // Defaults to "#" + /// LabelSuffix - This is appended to emitted labels. + const char *LabelSuffix; // Defaults to ":" + /// GlobalPrefix - If this is set to a non-empty string, it is prepended /// onto all global symbols. This is often used for "_" or ".". const char *GlobalPrefix; // Defaults to "" @@ -334,6 +337,9 @@ namespace llvm { const char *getCommentString() const { return CommentString; } + const char *getLabelSuffix() const { + return LabelSuffix; + } const char *getGlobalPrefix() const { return GlobalPrefix; } |