diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-23 03:11:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-23 03:11:46 +0000 |
commit | c3f23b84ea42568473d36fd22bb6098634f66cda (patch) | |
tree | d4eb03ff5e7b884674989810b1209ac6874e61a4 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | cabb6ff64d65fef4f94b1006a440b939045537c1 (diff) | |
download | bcm5719-llvm-c3f23b84ea42568473d36fd22bb6098634f66cda.tar.gz bcm5719-llvm-c3f23b84ea42568473d36fd22bb6098634f66cda.zip |
remove one form of EmitString, just use EmitBytes instead. We must
be careful to add a \0 at the end though, because EmitString didn't
do this.
llvm-svn: 94277
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index fcab4aa5e98..50842078b46 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -715,29 +715,6 @@ static void printStringChar(formatted_raw_ostream &O, unsigned char C) { } } -/// EmitString - Emit a string with quotes and a null terminator. -/// Special characters are emitted properly. -/// \literal (Eg. '\t') \endliteral -void AsmPrinter::EmitString(const StringRef String) const { - EmitString(String.data(), String.size()); -} - -void AsmPrinter::EmitString(const char *String, unsigned Size) const { - const char* AscizDirective = MAI->getAscizDirective(); - if (AscizDirective) - O << AscizDirective; - else - O << MAI->getAsciiDirective(); - O << '\"'; - for (unsigned i = 0; i < Size; ++i) - printStringChar(O, String[i]); - if (AscizDirective) - O << '\"'; - else - O << "\\0\""; -} - - /// EmitFile - Emit a .file directive. void AsmPrinter::EmitFile(unsigned Number, StringRef Name) const { O << "\t.file\t" << Number << " \""; |