]> granicus.if.org Git - llvm/commitdiff
Fix spelling mistakes in Tools/Tests comments. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Nov 2016 13:31:13 +0000 (13:31 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 20 Nov 2016 13:31:13 +0000 (13:31 +0000)
Identified by Pedro Giffuni in PR27636.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287489 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ListReducer.h
tools/lli/lli.cpp
tools/llvm-cov/CodeCoverage.cpp
tools/llvm-objdump/MachODump.cpp
tools/llvm-rtdyld/llvm-rtdyld.cpp
unittests/ProfileData/CoverageMappingTest.cpp

index 621a072d84e24be83ddd5c96b45e28a22f6e4f0e..dcfa11d06927f42db05aa1f5838c106a5ca93fe8 100644 (file)
@@ -71,7 +71,7 @@ template <typename ElTy> struct ListReducer {
     const unsigned MaxIterationsWithoutProgress = 3;
 
     // Maximal number of allowed single-element trim iterations. We add a
-    // threshhold here as single-element reductions may otherwise take a
+    // threshold here as single-element reductions may otherwise take a
     // very long time to complete.
     const unsigned MaxTrimIterationsWithoutBackJump = 3;
     bool ShufflingEnabled = true;
@@ -106,7 +106,7 @@ template <typename ElTy> struct ListReducer {
           TheList.swap(ShuffledList);
           MidTop = TheList.size();
           // Must increase the shuffling treshold to avoid the small
-          // probability of inifinite looping without making progress.
+          // probability of infinite looping without making progress.
           MaxIterations += 2;
           errs() << "\n\n*** Shuffling does not hide the bug...\n\n";
         } else {
index 26e8af9a638dd275502653aa3246b1951c9532d3..0823ff469de6d97ae0de1874e3e2f16ab4a10cca 100644 (file)
@@ -306,7 +306,7 @@ private:
 };
 
 // On Mingw and Cygwin, an external symbol named '__main' is called from the
-// generated 'main' function to allow static intialization.  To avoid linking
+// generated 'main' function to allow static initialization.  To avoid linking
 // problems with remote targets (because lli's remote target support does not
 // currently handle external linking) we add a secondary module which defines
 // an empty '__main' function.
index 93496bda8a1c62f675e366aee0f9cce43ed40e53..153e5ed2427f556a656a1206d40433928f4c3576 100644 (file)
@@ -89,7 +89,7 @@ private:
   std::unique_ptr<SourceCoverageView>
   createSourceFileView(StringRef SourceFile, const CoverageMapping &Coverage);
 
-  /// \brief Load the coverage mapping data. Return nullptr if an error occured.
+  /// \brief Load the coverage mapping data. Return nullptr if an error occurred.
   std::unique_ptr<CoverageMapping> load();
 
   /// \brief Remove input source files which aren't mapped by \p Coverage.
index 1e2fa336447c9cce10188d73ec3bafdb0711bb56..4e5241c5c502b20df50f8173ba217f64d4eea423 100644 (file)
@@ -2060,7 +2060,7 @@ static int SymbolizerGetOpInfo(void *DisInfo, uint64_t Pc, uint64_t Offset,
     // If we have a branch that is not an external relocation entry then
     // return 0 so the code in tryAddingSymbolicOperand() can use the
     // SymbolLookUp call back with the branch target address to look up the
-    // symbol and possiblity add an annotation for a symbol stub.
+    // symbol and possibility add an annotation for a symbol stub.
     if (isExtern == 0 && (r_type == MachO::ARM_RELOC_BR24 ||
                           r_type == MachO::ARM_THUMB_RELOC_BR22))
       return 0;
index 92c1ce6ab6a6adb86a9238d368f16655fe62182f..4d4e39000b8550dd1b370ed301b57885d858b94a 100644 (file)
@@ -532,7 +532,7 @@ applySpecificSectionMappings(RuntimeDyldChecker &Checker) {
 // Remaps section addresses for -verify mode. The following command line options
 // can be used to customize the layout of the memory within the phony target's
 // address space:
-// -target-addr-start <s> -- Specify where the phony target addres range starts.
+// -target-addr-start <s> -- Specify where the phony target address range starts.
 // -target-addr-end   <e> -- Specify where the phony target address range ends.
 // -target-section-sep <d> -- Specify how big a gap should be left between the
 //                            end of one section and the start of the next.
index e6d7aa30dc4ec893f2e7f8afb7137b2f4ab6cd0c..49eab4ad7887a59db9e16db60e035c7394eaa06b 100644 (file)
@@ -145,7 +145,7 @@ struct CoverageMappingTest : ::testing::TestWithParam<std::pair<bool, bool>> {
   }
 
   // Return the file index of file 'Name' for the current function.
-  // Add the file into the global map if necesary.
+  // Add the file into the global map if necessary.
   // See also InputFunctionCoverageData::ReverseVirtualFileMapping
   // for additional comments.
   unsigned getFileIndexForFunction(StringRef Name) {