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

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 16 19:28:24 PDT 2004



Changes in directory llvm/include/llvm/CodeGen:

AsmPrinter.h updated: 1.1 -> 1.2
---
Log message:

Some asmweriters want an _ prefix


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

Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.1 llvm/include/llvm/CodeGen/AsmPrinter.h:1.2
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.1	Mon Aug 16 18:15:20 2004
+++ llvm/include/llvm/CodeGen/AsmPrinter.h	Mon Aug 16 21:28:12 2004
@@ -41,7 +41,15 @@
     ///
     std::string CurrentFnName;
 
-    AsmPrinter(std::ostream &o, TargetMachine &tm) : O(o), TM(tm) { }
+    // Properties to be set by the derived class ctor, used to configure the
+    // asmwriter.
+
+    /// UsesUnderscorePrefix - If this flag is set to true, all identifiers
+    /// printed by the asmwriter will include a '_' prefix.
+    bool UsesUnderscorePrefix;
+
+    AsmPrinter(std::ostream &o, TargetMachine &tm)
+      : O(o), TM(tm), UsesUnderscorePrefix(false) { }
 
     /// doInitialization - Set up the AsmPrinter when we are working on a new
     /// module.  If your pass overrides this, it must make sure to explicitly






More information about the llvm-commits mailing list