From 54205246423c8d2fd68e4adac566282a6972e04a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Aug 2004 02:28:12 +0000 Subject: [PATCH] Some asmweriters want an _ prefix llvm-svn: 15844 --- include/llvm/CodeGen/AsmPrinter.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 932343df7bc..ac77acce1bb 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -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