diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-09 23:52:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-09 23:52:58 +0000 |
commit | 233f52be36a6a2ec053b1580fdf89625de256513 (patch) | |
tree | 5e83fcf9f65d98142f90e63a56d2b967e146cbb8 /lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | |
parent | 7f876967c0b368de48a1d0b9318b5113fddcf591 (diff) |
eliminate EOL, adding all comments with the OutStreamer.AddComment
method. With this, comments should end up on the same lines as the .byte
directives (for example) and we now get no output with:
$ llc CodeGen/X86/2009-02-12-DebugInfoVLA.ll -o - -filetype=null -asm-verbose
woot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index b255a17797..b8f9ba193c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -92,16 +92,6 @@ void DwarfPrinter::PrintRelDirective(unsigned Encoding) const { MAI->getData32bitsDirective() : MAI->getData64bitsDirective()); } -/// EOL - Print a newline character to asm stream. If a comment is present -/// then it will be printed first. Comments should not contain '\n'. -void DwarfPrinter::EOL(const Twine &Comment) const { - if (Asm->VerboseAsm && !Comment.isTriviallyEmpty()) { - Asm->O.PadToColumn(MAI->getCommentColumn()); - Asm->O << Asm->MAI->getCommentString() << ' ' << Comment; - } - Asm->O << '\n'; -} - static const char *DecodeDWARFEncoding(unsigned Encoding) { switch (Encoding) { case dwarf::DW_EH_PE_absptr: return "absptr"; |