Skip to content

Commit dae11f7

Browse files
committed
Fix spelling mistakes in Tools/Tests comments. NFC.
Identified by Pedro Giffuni in PR27636. llvm-svn: 287489
1 parent 7d18a70 commit dae11f7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

llvm/tools/bugpoint/ListReducer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ template <typename ElTy> struct ListReducer {
7171
const unsigned MaxIterationsWithoutProgress = 3;
7272

7373
// Maximal number of allowed single-element trim iterations. We add a
74-
// threshhold here as single-element reductions may otherwise take a
74+
// threshold here as single-element reductions may otherwise take a
7575
// very long time to complete.
7676
const unsigned MaxTrimIterationsWithoutBackJump = 3;
7777
bool ShufflingEnabled = true;
@@ -106,7 +106,7 @@ template <typename ElTy> struct ListReducer {
106106
TheList.swap(ShuffledList);
107107
MidTop = TheList.size();
108108
// Must increase the shuffling treshold to avoid the small
109-
// probability of inifinite looping without making progress.
109+
// probability of infinite looping without making progress.
110110
MaxIterations += 2;
111111
errs() << "\n\n*** Shuffling does not hide the bug...\n\n";
112112
} else {

llvm/tools/lli/lli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class LLIObjectCache : public ObjectCache {
306306
};
307307

308308
// On Mingw and Cygwin, an external symbol named '__main' is called from the
309-
// generated 'main' function to allow static intialization. To avoid linking
309+
// generated 'main' function to allow static initialization. To avoid linking
310310
// problems with remote targets (because lli's remote target support does not
311311
// currently handle external linking) we add a secondary module which defines
312312
// an empty '__main' function.

llvm/tools/llvm-cov/CodeCoverage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class CodeCoverageTool {
8989
std::unique_ptr<SourceCoverageView>
9090
createSourceFileView(StringRef SourceFile, const CoverageMapping &Coverage);
9191

92-
/// \brief Load the coverage mapping data. Return nullptr if an error occured.
92+
/// \brief Load the coverage mapping data. Return nullptr if an error occurred.
9393
std::unique_ptr<CoverageMapping> load();
9494

9595
/// \brief Remove input source files which aren't mapped by \p Coverage.

llvm/tools/llvm-objdump/MachODump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ static int SymbolizerGetOpInfo(void *DisInfo, uint64_t Pc, uint64_t Offset,
20602060
// If we have a branch that is not an external relocation entry then
20612061
// return 0 so the code in tryAddingSymbolicOperand() can use the
20622062
// SymbolLookUp call back with the branch target address to look up the
2063-
// symbol and possiblity add an annotation for a symbol stub.
2063+
// symbol and possibility add an annotation for a symbol stub.
20642064
if (isExtern == 0 && (r_type == MachO::ARM_RELOC_BR24 ||
20652065
r_type == MachO::ARM_THUMB_RELOC_BR22))
20662066
return 0;

llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ applySpecificSectionMappings(RuntimeDyldChecker &Checker) {
532532
// Remaps section addresses for -verify mode. The following command line options
533533
// can be used to customize the layout of the memory within the phony target's
534534
// address space:
535-
// -target-addr-start <s> -- Specify where the phony target addres range starts.
535+
// -target-addr-start <s> -- Specify where the phony target address range starts.
536536
// -target-addr-end <e> -- Specify where the phony target address range ends.
537537
// -target-section-sep <d> -- Specify how big a gap should be left between the
538538
// end of one section and the start of the next.

llvm/unittests/ProfileData/CoverageMappingTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::pair<bool, bool>> {
145145
}
146146

147147
// Return the file index of file 'Name' for the current function.
148-
// Add the file into the global map if necesary.
148+
// Add the file into the global map if necessary.
149149
// See also InputFunctionCoverageData::ReverseVirtualFileMapping
150150
// for additional comments.
151151
unsigned getFileIndexForFunction(StringRef Name) {

0 commit comments

Comments
 (0)