[llvm] Fix typo (PR #80703)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 08:17:29 PST 2024
https://github.com/stephenpeckham created https://github.com/llvm/llvm-project/pull/80703
None
>From aec0323c0acc4c0233447f2f8dee64fbef8f9f43 Mon Sep 17 00:00:00 2001
From: Stephen Peckham <speckham at us.ibm.com>
Date: Mon, 5 Feb 2024 11:15:34 -0500
Subject: [PATCH] Fix typo
---
llvm/include/llvm/MC/MCObjectStreamer.h | 2 +-
llvm/include/llvm/MC/MCStreamer.h | 2 +-
llvm/lib/MC/MCAsmStreamer.cpp | 8 ++++----
llvm/lib/MC/MCObjectStreamer.cpp | 2 +-
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 5e5b4b31501709..e212d546139808 100644
--- a/llvm/include/llvm/MC/MCObjectStreamer.h
+++ b/llvm/include/llvm/MC/MCObjectStreamer.h
@@ -202,7 +202,7 @@ class MCObjectStreamer : public MCStreamer {
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 3bf2d22e182353..671511ab4b88e3 100644
--- a/llvm/include/llvm/MC/MCStreamer.h
+++ b/llvm/include/llvm/MC/MCStreamer.h
@@ -903,7 +903,7 @@ class MCStreamer {
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 49668de27d67e7..e69b3632fb939d 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -270,7 +270,7 @@ class MCAsmStreamer final : public MCStreamer {
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 d11ccfb5e269f7..bb4a92434a141c 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 0062d08353141a..d493663a0e3fcb 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) {
More information about the llvm-commits
mailing list