summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-22 22:19:53 +0000
committerChris Lattner <sabre@nondot.org>2010-09-22 22:19:53 +0000
commit7bce0596a78526d1c02f231f8863b44f6f5a6c69 (patch)
tree9782815aef27e279026d87b841ca71da59a0ca83 /llvm/include
parent71954b8d5462902b15684a402ac75d1cc31c5b55 (diff)
downloadbcm5719-llvm-7bce0596a78526d1c02f231f8863b44f6f5a6c69.tar.gz
bcm5719-llvm-7bce0596a78526d1c02f231f8863b44f6f5a6c69.zip
allow target-specific label suffixes, patch by Yuri Gribov!
llvm-svn: 114592
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/MC/MCAsmInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCAsmInfo.h b/llvm/include/llvm/MC/MCAsmInfo.h
index 43952e0845d..b305772e2c3 100644
--- a/llvm/include/llvm/MC/MCAsmInfo.h
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud