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

Jeff Cohen jeffc at jolt-lang.org
Mon May 1 20:58:58 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

AsmPrinter.h updated: 1.35 -> 1.36
---
Log message:

De-virtualize SwitchSection.

---
Diffs of the changes:  (+2 -3)

 AsmPrinter.h |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/CodeGen/AsmPrinter.h
diff -u llvm/include/llvm/CodeGen/AsmPrinter.h:1.35 llvm/include/llvm/CodeGen/AsmPrinter.h:1.36
--- llvm/include/llvm/CodeGen/AsmPrinter.h:1.35	Mon May  1 22:46:13 2006
+++ llvm/include/llvm/CodeGen/AsmPrinter.h	Mon May  1 22:58:45 2006
@@ -26,12 +26,10 @@
   class GlobalVariable;
 
   class AsmPrinter : public MachineFunctionPass {
-  protected:
     /// CurrentSection - The current section we are emitting to.  This is
     /// controlled and used by the SwitchSection method.
     std::string CurrentSection;
     
-  private:
     /// FunctionNumber - This provides a unique ID for each function emitted in
     /// this translation unit.  It is autoincremented by SetupMachineFunction,
     /// and can be accessed with getFunctionNumber() and 
@@ -139,6 +137,7 @@
     /// emit a global to an arbitrary section.  The section name is emited after
     /// this.
     const char *SwitchToSectionDirective;  // Defaults to "\t.section\t"
+    bool MLSections;  // True if Microsoft ML assembler is targetted
     
     /// ConstantPoolSection - This is the section that we SwitchToSection right
     /// before emitting the constant pool for a function.
@@ -188,7 +187,7 @@
     /// If the new section is an empty string, this method forgets what the
     /// current section is, but does not emit a .section directive.
     ///
-    virtual void SwitchSection(const char *NewSection, const GlobalValue *GV);
+    void SwitchSection(const char *NewSection, const GlobalValue *GV);
 
     /// getPreferredAlignmentLog - Return the preferred alignment of the
     /// specified global, returned in log form.  This includes an explicitly






More information about the llvm-commits mailing list