diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-17 02:28:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-17 02:28:12 +0000 |
commit | f1cb7953947900035edd090ad4b81b1b2bb48791 (patch) | |
tree | 6de28db0734c48dd88600b0b9886d427217543d6 | |
parent | 8996e55ff9f694f32215d4ded4679cbd6d26db8b (diff) |
Some asmweriters want an _ prefix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15844 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 932343df7b..ac77acce1b 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 |