mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
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
This commit is contained in:
parent
836ba9d7e7
commit
25995093e7
@ -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.
|
||||
|
@ -551,6 +551,7 @@ void AsmPrinter::PrintHex(int Value) const {
|
||||
void AsmPrinter::EOL() const {
|
||||
O << '\n';
|
||||
}
|
||||
|
||||
void AsmPrinter::EOL(const std::string &Comment) const {
|
||||
if (AsmVerbose && !Comment.empty()) {
|
||||
O << '\t'
|
||||
@ -561,6 +562,16 @@ void AsmPrinter::EOL(const std::string &Comment) const {
|
||||
O << '\n';
|
||||
}
|
||||
|
||||
void AsmPrinter::EOL(const char* Comment) const {
|
||||
if (AsmVerbose && *Comment) {
|
||||
O << '\t'
|
||||
<< TAI->getCommentString()
|
||||
<< ' '
|
||||
<< Comment;
|
||||
}
|
||||
O << '\n';
|
||||
}
|
||||
|
||||
/// EmitULEB128Bytes - Emit an assembler byte data directive to compose an
|
||||
/// unsigned leb128 value.
|
||||
void AsmPrinter::EmitULEB128Bytes(unsigned Value) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user