summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-17 16:26:36 +0000
committerChris Lattner <sabre@nondot.org>2004-08-17 16:26:36 +0000
commit75585268a7761acfce320d1f4da059bea82d2ecd (patch)
treeb85e680fe094d55ac9dc5e7e82304c66165f33c8 /include/llvm/CodeGen
parent85baf76eec765a9c7212bf57b025388e964f441d (diff)
downloadllvm-75585268a7761acfce320d1f4da059bea82d2ecd.tar.gz
llvm-75585268a7761acfce320d1f4da059bea82d2ecd.tar.bz2
llvm-75585268a7761acfce320d1f4da059bea82d2ecd.tar.xz
Allow targets to specify a comment character
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index b295bdac0a..b441ef5407 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -45,9 +45,13 @@ namespace llvm {
// Properties to be set by the derived class ctor, used to configure the
// asmwriter.
+ /// CommentChar - This indicates the comment character used by the
+ /// assembler.
+ const char *CommentChar;
+
/// 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;
+ const char *GlobalPrefix; // Defaults to ""
/// ZeroDirective - this should be set to the directive used to get some
/// number of zero bytes emitted to the current section. Common cases are
@@ -69,6 +73,7 @@ namespace llvm {
AsmPrinter(std::ostream &o, TargetMachine &tm)
: O(o), TM(tm),
+ CommentChar("#"),
GlobalPrefix(""),
ZeroDirective("\t.zero\t"),
AsciiDirective("\t.ascii\t"),