[llvm-commits] CVS: llvm/include/llvm/CodeGen/AsmPrinter.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 16 23:06:01 PDT 2004
Changes in directory llvm/include/llvm/CodeGen:
AsmPrinter.h updated: 1.2 -> 1.3
---
Log message:
We now allow targets to use any prefix they want for global symbols. Lets
hear it for ".".
---
Diffs of the changes: (+4 -4)
Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.2 llvm/include/llvm/CodeGen/AsmPrinter.h:1.3
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.2 Mon Aug 16 21:28:12 2004
+++ llvm/include/llvm/CodeGen/AsmPrinter.h Tue Aug 17 01:05:48 2004
@@ -44,12 +44,12 @@
// 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;
+ /// 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;
AsmPrinter(std::ostream &o, TargetMachine &tm)
- : O(o), TM(tm), UsesUnderscorePrefix(false) { }
+ : O(o), TM(tm), GlobalPrefix("") { }
/// 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