[llvm-commits] [llvm] r94190 - in /llvm/trunk: include/llvm/MC/MCStreamer.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/MC/MCAsmStreamer.cpp

Chris Lattner sabre at nondot.org
Fri Jan 22 10:21:36 PST 2010


Author: lattner
Date: Fri Jan 22 12:21:35 2010
New Revision: 94190

URL: http://llvm.org/viewvc/llvm-project?rev=94190&view=rev
Log:
rename addComment -> AddComment for consistency.

Modified:
    llvm/trunk/include/llvm/MC/MCStreamer.h
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
    llvm/trunk/lib/MC/MCAsmStreamer.cpp

Modified: llvm/trunk/include/llvm/MC/MCStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCStreamer.h?rev=94190&r1=94189&r2=94190&view=diff

==============================================================================
--- llvm/trunk/include/llvm/MC/MCStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCStreamer.h Fri Jan 22 12:21:35 2010
@@ -81,14 +81,14 @@
 
     MCContext &getContext() const { return Context; }
 
-    /// addComment - Add a comment that can be emitted to the generated .s
+    /// AddComment - Add a comment that can be emitted to the generated .s
     /// file if applicable as a QoI issue to make the output of the compiler
     /// more readable.  This only affects the MCAsmStreamer, and only when
     /// verbose assembly output is enabled.
     ///
     /// If the comment includes embedded \n's, they will each get the comment
     /// prefix as appropriate.  The added comment should not end with a \n.
-    virtual void addComment(const Twine &T) {}
+    virtual void AddComment(const Twine &T) {}
     
     /// @name Symbol & Section Management
     /// @{

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=94190&r1=94189&r2=94190&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Fri Jan 22 12:21:35 2010
@@ -1135,7 +1135,7 @@
       raw_svector_ostream OS(TmpBuffer);
       double Val = CFP->getValueAPF().convertToDouble();  // for comment only
       OS << "double " << Val;
-      AP.OutStreamer.addComment(OS.str());
+      AP.OutStreamer.AddComment(OS.str());
     }
 
     uint64_t Val = CFP->getValueAPF().bitcastToAPInt().getZExtValue();

Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=94190&r1=94189&r2=94190&view=diff

==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Fri Jan 22 12:21:35 2010
@@ -55,11 +55,11 @@
   }
   void EmitCommentsAndEOL();
   
-  /// addComment - Add a comment that can be emitted to the generated .s
+  /// AddComment - Add a comment that can be emitted to the generated .s
   /// file if applicable as a QoI issue to make the output of the compiler
   /// more readable.  This only affects the MCAsmStreamer, and only when
   /// verbose assembly output is enabled.
-  virtual void addComment(const Twine &T);
+  virtual void AddComment(const Twine &T);
   
   /// @name MCStreamer Interface
   /// @{
@@ -106,11 +106,11 @@
 
 } // end anonymous namespace.
 
-/// addComment - Add a comment that can be emitted to the generated .s
+/// AddComment - Add a comment that can be emitted to the generated .s
 /// file if applicable as a QoI issue to make the output of the compiler
 /// more readable.  This only affects the MCAsmStreamer, and only when
 /// verbose assembly output is enabled.
-void MCAsmStreamer::addComment(const Twine &T) {
+void MCAsmStreamer::AddComment(const Twine &T) {
   if (!IsVerboseAsm) return;
   // Each comment goes on its own line.
   if (!CommentToEmit.empty())





More information about the llvm-commits mailing list