[llvm] 5b79d5a - [MC] Remove a stray space after tab for COFF .def directives

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 28 01:22:07 PST 2022


Author: Martin Storsjö
Date: 2022-01-28T11:19:51+02:00
New Revision: 5b79d5acdb0eff563d49f38daaebe368766face8

URL: https://github.com/llvm/llvm-project/commit/5b79d5acdb0eff563d49f38daaebe368766face8
DIFF: https://github.com/llvm/llvm-project/commit/5b79d5acdb0eff563d49f38daaebe368766face8.diff

LOG: [MC] Remove a stray space after tab for COFF .def directives

This extra stray space after tab can be traced back to when printing
of this directive was added originally in
4f01b783a3ca5b2544fe1b1677b5bcf6d91c6d2c. The same commit added
inconsistent printing of space after the ELF .type directive too,
which was fixed later in
77fe07a93aeb8feaf39b7d48ad8fc1e6c9e4c78e.

(This is kind of NFC, but it does alter the output, so it's not
strictly non-functional in that sense.)

Differential Revision: https://reviews.llvm.org/D118401

Added: 
    

Modified: 
    llvm/lib/MC/MCAsmStreamer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index 119237bb052e6..61ec941f50b82 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -788,7 +788,7 @@ void MCAsmStreamer::emitSyntaxDirective() {
 }
 
 void MCAsmStreamer::BeginCOFFSymbolDef(const MCSymbol *Symbol) {
-  OS << "\t.def\t ";
+  OS << "\t.def\t";
   Symbol->print(OS, MAI);
   OS << ';';
   EmitEOL();


        


More information about the llvm-commits mailing list