rename addComment -> AddComment for consistency.
authorChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 18:21:35 +0000 (18:21 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 18:21:35 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94190 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 6afe1bf6cea05b4de7eb9eb0dd45a907528d6617..5470ab2f271d5a3f7e493ad0a8c8a2082e51c822 100644 (file)
@@ -81,14 +81,14 @@ namespace llvm {
 
     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
     /// @{
index e12a66e7e41f278cac29b79c40981215c16de3de..5564fa165970203239ab0cdd3070a72e229ecda7 100644 (file)
@@ -1135,7 +1135,7 @@ static void EmitGlobalConstantFP(const ConstantFP *CFP, unsigned AddrSpace,
       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();
index 548e96ba7dac907a76468e9e91569f4d8e86a853..2c2fb0e8c208f09a095f4747666ac982ff9332d7 100644 (file)
@@ -55,11 +55,11 @@ public:
   }
   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 @@ public:
 
 } // 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())