From 367bfbb1143c437fd1733d985d260513303d2e85 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 1 Jul 2008 21:16:27 +0000 Subject: Add a version of AsmPrinter::EOL that takes a const char* so that we don't have to do as many implicit std::string constructions. Unfortunately, this doesn't appear to translate to a real speedup in practice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52981 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/llvm/CodeGen/AsmPrinter.h') diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index e92c8a8..fbb0821 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -236,6 +236,7 @@ namespace llvm { /// then it will be printed first. Comments should not contain '\n'. void EOL() const; void EOL(const std::string &Comment) const; + void EOL(const char* Comment) const; /// EmitULEB128Bytes - Emit an assembler byte data directive to compose an /// unsigned leb128 value. -- cgit v1.1