From 32598e1bf4f4cd8951a2005a6997b0852ad88538 Mon Sep 17 00:00:00 2001 From: Mandeep Singh Grang Date: Fri, 15 Sep 2017 20:01:43 +0000 Subject: [PATCH] [llvm] Fix some typos. NFC. Reviewers: mcrosier Reviewed By: mcrosier Subscribers: mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D37922 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313388 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Writer/BitcodeWriter.cpp | 2 +- lib/MC/MCAsmStreamer.cpp | 4 ++-- lib/MC/MCFragment.cpp | 2 +- lib/Target/Hexagon/HexagonHardwareLoops.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 3c7e10faa5d..de154ba6be7 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3676,7 +3676,7 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() { // 2) There is a static variable with the OriginalGUID identical // to the GUID of the library function in 1); // When this happens, the logic for SamplePGO kicks in and - // the static varible in 2) will be found, which needs to be + // the static variable in 2) will be found, which needs to be // filtered out. auto *GVSum = Index.getGlobalValueSummary(GUID, false); if (GVSum && diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp index 589716bfe8c..69f4a5d0147 100644 --- a/lib/MC/MCAsmStreamer.cpp +++ b/lib/MC/MCAsmStreamer.cpp @@ -1609,8 +1609,8 @@ void MCAsmStreamer::AddEncodingComment(const MCInst &Inst, } } OS << "]"; - // If we are not going to add fixup or schedul comments after this point then - // we have to end the current comment line with "\n". + // If we are not going to add fixup or schedule comments after this point + // then we have to end the current comment line with "\n". if (Fixups.size() || !PrintSchedInfo) OS << "\n"; diff --git a/lib/MC/MCFragment.cpp b/lib/MC/MCFragment.cpp index 6e0249377a8..31acca01bed 100644 --- a/lib/MC/MCFragment.cpp +++ b/lib/MC/MCFragment.cpp @@ -80,7 +80,7 @@ uint64_t MCAsmLayout::getFragmentOffset(const MCFragment *F) const { return F->Offset; } -// Simple getSymbolOffset helper for the non-varibale case. +// Simple getSymbolOffset helper for the non-variable case. static bool getLabelOffset(const MCAsmLayout &Layout, const MCSymbol &S, bool ReportError, uint64_t &Val) { if (!S.getFragment()) { diff --git a/lib/Target/Hexagon/HexagonHardwareLoops.cpp b/lib/Target/Hexagon/HexagonHardwareLoops.cpp index 7fa5b7525bd..d504bf810fa 100644 --- a/lib/Target/Hexagon/HexagonHardwareLoops.cpp +++ b/lib/Target/Hexagon/HexagonHardwareLoops.cpp @@ -278,7 +278,7 @@ namespace { /// value, either directly, or via a register. void setImmediate(MachineOperand &MO, int64_t Val); - /// \brief Fix the data flow of the induction varible. + /// \brief Fix the data flow of the induction variable. /// The desired flow is: phi ---> bump -+-> comparison-in-latch. /// | /// +-> back to phi -- 2.40.0