Allow targets to specify a comment character
authorChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2004 16:26:36 +0000 (16:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2004 16:26:36 +0000 (16:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15879 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h

index b295bdac0a833eadebbfe27cf04511c6bf103b20..b441ef540714ec61e15a8ef2db45b00522bd7b94 100644 (file)
@@ -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"),