aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-01 21:16:27 +0000
committerOwen Anderson <resistor@mac.com>2008-07-01 21:16:27 +0000
commit367bfbb1143c437fd1733d985d260513303d2e85 (patch)
tree29874cdf27f76747f32bd0732854fd53d9b925d0 /include/llvm/CodeGen/AsmPrinter.h
parentbc0fafc9774f58d517fdb1c3ec189f5d0b219f8d (diff)
downloadexternal_llvm-367bfbb1143c437fd1733d985d260513303d2e85.zip
external_llvm-367bfbb1143c437fd1733d985d260513303d2e85.tar.gz
external_llvm-367bfbb1143c437fd1733d985d260513303d2e85.tar.bz2
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
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h1
1 files changed, 1 insertions, 0 deletions
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.