Some asmweriters want an _ prefix
authorChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2004 02:28:12 +0000 (02:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2004 02:28:12 +0000 (02:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15844 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h

index 932343df7bc1989f46a75d29d61c60bb287c5b7e..ac77acce1bbb74378ffaf60b94584bec68851f7e 100644 (file)
@@ -41,7 +41,15 @@ namespace llvm {
     ///
     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