[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 17 09:26:50 PDT 2004



Changes in directory llvm/include/llvm/CodeGen:

AsmPrinter.h updated: 1.5 -> 1.6
---
Log message:

Allow targets to specify a comment character


---
Diffs of the changes:  (+6 -1)

Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.5 llvm/include/llvm/CodeGen/AsmPrinter.h:1.6
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.5	Tue Aug 17 01:48:34 2004
+++ llvm/include/llvm/CodeGen/AsmPrinter.h	Tue Aug 17 11:26:36 2004
@@ -45,9 +45,13 @@
     // 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 @@
 
     AsmPrinter(std::ostream &o, TargetMachine &tm)
       : O(o), TM(tm),
+        CommentChar("#"),
         GlobalPrefix(""),
         ZeroDirective("\t.zero\t"),
         AsciiDirective("\t.ascii\t"),






More information about the llvm-commits mailing list