diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-22 18:21:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 18:21:35 +0000 |
commit | d32c7cfa248f685e6e3064c0958dc2f0c31a4df6 (patch) | |
tree | 2965259dec4a1fdaf6e35624bcf18c21e243415b | |
parent | a46918d2b1b63aa3db94aa10b9ea70209b84e274 (diff) | |
download | llvm-d32c7cfa248f685e6e3064c0958dc2f0c31a4df6.tar.gz llvm-d32c7cfa248f685e6e3064c0958dc2f0c31a4df6.tar.bz2 llvm-d32c7cfa248f685e6e3064c0958dc2f0c31a4df6.tar.xz |
rename addComment -> AddComment for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94190 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 4 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/MC/MCAsmStreamer.cpp | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index 6afe1bf6ce..5470ab2f27 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -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 /// @{ diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e12a66e7e4..5564fa1659 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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(); diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 548e96ba7d..2c2fb0e8c2 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -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()) |