From ff281e5fb66a2f7819e1757cee6f7cc290e92ab6 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Thu, 13 Jul 2017 06:48:39 +0000 Subject: [PATCH] fix typos in comments and error messges; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307885 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/Kaleidoscope/include/KaleidoscopeJIT.h | 2 +- lib/CodeGen/PostRAHazardRecognizer.cpp | 2 +- lib/Target/AMDGPU/GCNSchedStrategy.h | 2 +- lib/Target/X86/AsmParser/X86AsmParser.cpp | 4 ++-- tools/llvm-c-test/echo.cpp | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/Kaleidoscope/include/KaleidoscopeJIT.h b/examples/Kaleidoscope/include/KaleidoscopeJIT.h index 90ae3d1041e..215ce03af99 100644 --- a/examples/Kaleidoscope/include/KaleidoscopeJIT.h +++ b/examples/Kaleidoscope/include/KaleidoscopeJIT.h @@ -115,7 +115,7 @@ private: return JITSymbol(SymAddr, JITSymbolFlags::Exported); #ifdef LLVM_ON_WIN32 - // For Windows retry without "_" at begining, as RTDyldMemoryManager uses + // For Windows retry without "_" at beginning, as RTDyldMemoryManager uses // GetProcAddress and standard libraries like msvcrt.dll use names // with and without "_" (for example "_itoa" but "sin"). if (Name.length() > 2 && Name[0] == '_') diff --git a/lib/CodeGen/PostRAHazardRecognizer.cpp b/lib/CodeGen/PostRAHazardRecognizer.cpp index 425a59dc037..4a50d895340 100644 --- a/lib/CodeGen/PostRAHazardRecognizer.cpp +++ b/lib/CodeGen/PostRAHazardRecognizer.cpp @@ -23,7 +23,7 @@ /// This pass traverses all the instructions in a program in top-down order. /// In contrast to the instruction scheduling passes, this pass never resets /// the hazard recognizer to ensure it can correctly handles noop hazards at -/// the begining of blocks. +/// the beginning of blocks. // //===----------------------------------------------------------------------===// diff --git a/lib/Target/AMDGPU/GCNSchedStrategy.h b/lib/Target/AMDGPU/GCNSchedStrategy.h index 3ed3cd5b3b1..060d2ca72d9 100644 --- a/lib/Target/AMDGPU/GCNSchedStrategy.h +++ b/lib/Target/AMDGPU/GCNSchedStrategy.h @@ -66,7 +66,7 @@ class GCNScheduleDAGMILive : public ScheduleDAGMILive { const SIMachineFunctionInfo &MFI; - // Occupancy target at the begining of function scheduling cycle. + // Occupancy target at the beginning of function scheduling cycle. unsigned StartingOccupancy; // Minimal real occupancy recorder for the function. diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index 825f23dc52d..c1d216c8b7a 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp @@ -2453,8 +2453,8 @@ bool X86AsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name, break; } - // In MS inline asm curly braces mark the begining/end of a block, therefore - // they should be interepreted as end of statement + // In MS inline asm curly braces mark the beginning/end of a block, + // therefore they should be interepreted as end of statement CurlyAsEndOfStatement = isParsingIntelSyntax() && isParsingInlineAsm() && (getLexer().is(AsmToken::LCurly) || getLexer().is(AsmToken::RCurly)); diff --git a/tools/llvm-c-test/echo.cpp b/tools/llvm-c-test/echo.cpp index 52ce85c5778..966c0083bf8 100644 --- a/tools/llvm-c-test/echo.cpp +++ b/tools/llvm-c-test/echo.cpp @@ -765,7 +765,7 @@ static void declare_symbols(LLVMModuleRef Src, LLVMModuleRef M) { LLVMValueRef Next = nullptr; if (!Begin) { if (End != nullptr) - report_fatal_error("Range has an end but no begining"); + report_fatal_error("Range has an end but no beginning"); goto FunDecl; } @@ -794,7 +794,7 @@ FunDecl: End = LLVMGetLastFunction(Src); if (!Begin) { if (End != nullptr) - report_fatal_error("Range has an end but no begining"); + report_fatal_error("Range has an end but no beginning"); return; } @@ -844,7 +844,7 @@ static void clone_symbols(LLVMModuleRef Src, LLVMModuleRef M) { LLVMValueRef Next = nullptr; if (!Begin) { if (End != nullptr) - report_fatal_error("Range has an end but no begining"); + report_fatal_error("Range has an end but no beginning"); goto FunClone; } @@ -885,7 +885,7 @@ FunClone: End = LLVMGetLastFunction(Src); if (!Begin) { if (End != nullptr) - report_fatal_error("Range has an end but no begining"); + report_fatal_error("Range has an end but no beginning"); return; }