aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-11 20:59:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-11 20:59:47 +0000
commit59fc42debd571bbafc52c20bc418fdc3f4d00188 (patch)
tree185c53d1fab5944078b6ad9ed67f13f93f780f62 /lib/Target/X86
parenta942ad3d995fe153b2b905b3d57e285a57240514 (diff)
downloadexternal_llvm-59fc42debd571bbafc52c20bc418fdc3f4d00188.zip
external_llvm-59fc42debd571bbafc52c20bc418fdc3f4d00188.tar.gz
external_llvm-59fc42debd571bbafc52c20bc418fdc3f4d00188.tar.bz2
llvm-mc/AsmParser: Allow target to specific a comment delimiter, which will be
used to strip hard coded comments out of .td assembly strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86.td b/lib/Target/X86/X86.td
index effbddc..e7aa1f2 100644
--- a/lib/Target/X86/X86.td
+++ b/lib/Target/X86/X86.td
@@ -182,6 +182,12 @@ include "X86CallingConv.td"
def ATTAsmParser : AsmParser {
string AsmParserClassName = "ATTAsmParser";
int Variant = 0;
+
+ // Discard comments in assembly strings.
+ string CommentDelimiter = "#";
+
+ // Recognize hard coded registers.
+ string RegisterPrefix = "%";
}
// The X86 target supports two different syntaxes for emitting machine code.