From 8ed211406a68d036c044829807e45eefc17f5aa8 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 30 Aug 2009 00:28:57 +0000 Subject: [PATCH] Nuke moribund "std::string" version of EOL(..., Encoding). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80466 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 1 - lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 8 -------- 2 files changed, 9 deletions(-) diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 8ce56c81b9a..621b47d21e6 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -268,7 +268,6 @@ namespace llvm { void EOL() const; void EOL(const std::string &Comment) const; void EOL(const char* Comment) const; - void EOL(const std::string &Comment, unsigned Encoding) const; void EOL(const char *Comment, unsigned Encoding) const; /// EmitULEB128Bytes - Emit an assembler byte data directive to compose an diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index f06db8e1a03..a92d923a7d3 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -633,14 +633,6 @@ static const char *DecodeDWARFEncoding(unsigned Encoding) { return 0; } -void AsmPrinter::EOL(const std::string &Comment, unsigned Encoding) const { - if (VerboseAsm && !Comment.empty()) { - EOL(Comment.c_str(), Encoding); - return; - } - O << '\n'; -} - void AsmPrinter::EOL(const char *Comment, unsigned Encoding) const { if (VerboseAsm && *Comment) { O.PadToColumn(MAI->getCommentColumn());