diff options
author | stephenpeckham <118857872+stephenpeckham@users.noreply.github.com> | 2024-02-05 12:42:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 12:42:43 -0600 |
commit | 032a70ee1183dba5b942778f855e1d58244e8077 (patch) | |
tree | f83eb601cbc3875067644721c4b6949be3b896be | |
parent | 214536b0d8b68f826589600472e28bbb903d6d7a (diff) | |
download | llvm-032a70ee1183dba5b942778f855e1d58244e8077.zip llvm-032a70ee1183dba5b942778f855e1d58244e8077.tar.gz llvm-032a70ee1183dba5b942778f855e1d58244e8077.tar.bz2 |
[NFC] Fix typo (#80703)
-rw-r--r-- | llvm/include/llvm/MC/MCObjectStreamer.h | 2 | ||||
-rw-r--r-- | llvm/include/llvm/MC/MCStreamer.h | 2 | ||||
-rw-r--r-- | llvm/lib/MC/MCAsmStreamer.cpp | 8 | ||||
-rw-r--r-- | llvm/lib/MC/MCObjectStreamer.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 3 |
5 files changed, 9 insertions, 8 deletions
diff --git a/llvm/include/llvm/MC/MCObjectStreamer.h b/llvm/include/llvm/MC/MCObjectStreamer.h index 5e5b4b3..e212d54 100644 --- a/llvm/include/llvm/MC/MCObjectStreamer.h +++ b/llvm/include/llvm/MC/MCObjectStreamer.h @@ -202,7 +202,7 @@ public: void emitNops(int64_t NumBytes, int64_t ControlledNopLength, SMLoc Loc, const MCSubtargetInfo &STI) override; void emitFileDirective(StringRef Filename) override; - void emitFileDirective(StringRef Filename, StringRef CompilerVerion, + void emitFileDirective(StringRef Filename, StringRef CompilerVersion, StringRef TimeStamp, StringRef Description) override; void emitAddrsig() override; diff --git a/llvm/include/llvm/MC/MCStreamer.h b/llvm/include/llvm/MC/MCStreamer.h index 3bf2d22..671511a 100644 --- a/llvm/include/llvm/MC/MCStreamer.h +++ b/llvm/include/llvm/MC/MCStreamer.h @@ -903,7 +903,7 @@ public: virtual void emitFileDirective(StringRef Filename); /// Emit ".file assembler diretive with additioal info. - virtual void emitFileDirective(StringRef Filename, StringRef CompilerVerion, + virtual void emitFileDirective(StringRef Filename, StringRef CompilerVersion, StringRef TimeStamp, StringRef Description); /// Emit the "identifiers" directive. This implements the diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index a12661d..a4dbd8c 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -270,7 +270,7 @@ public: SMLoc Loc) override; void emitFileDirective(StringRef Filename) override; - void emitFileDirective(StringRef Filename, StringRef CompilerVerion, + void emitFileDirective(StringRef Filename, StringRef CompilerVersion, StringRef TimeStamp, StringRef Description) override; Expected<unsigned> tryEmitDwarfFileDirective( unsigned FileNo, StringRef Directory, StringRef Filename, @@ -1584,15 +1584,15 @@ void MCAsmStreamer::emitFileDirective(StringRef Filename) { } void MCAsmStreamer::emitFileDirective(StringRef Filename, - StringRef CompilerVerion, + StringRef CompilerVersion, StringRef TimeStamp, StringRef Description) { assert(MAI->hasFourStringsDotFile()); OS << "\t.file\t"; PrintQuotedString(Filename, OS); OS << ","; - if (!CompilerVerion.empty()) { - PrintQuotedString(CompilerVerion, OS); + if (!CompilerVersion.empty()) { + PrintQuotedString(CompilerVersion, OS); } if (!TimeStamp.empty()) { OS << ","; diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index d11ccfb..bb4a924 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -898,7 +898,7 @@ void MCObjectStreamer::emitFileDirective(StringRef Filename) { } void MCObjectStreamer::emitFileDirective(StringRef Filename, - StringRef CompilerVerion, + StringRef CompilerVersion, StringRef TimeStamp, StringRef Description) { getAssembler().addFileName(Filename); diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index bc145ae..d039577 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -1167,7 +1167,8 @@ void MCStreamer::endCOFFSymbolDef() { llvm_unreachable("this directive only supported on COFF targets"); } void MCStreamer::emitFileDirective(StringRef Filename) {} -void MCStreamer::emitFileDirective(StringRef Filename, StringRef CompilerVerion, +void MCStreamer::emitFileDirective(StringRef Filename, + StringRef CompilerVersion, StringRef TimeStamp, StringRef Description) { } void MCStreamer::emitCOFFSymbolStorageClass(int StorageClass) { |