fix trivial typos; NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Sat, 1 Jul 2017 08:46:43 +0000 (08:46 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Sat, 1 Jul 2017 08:46:43 +0000 (08:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306954 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp
lib/Driver/ToolChains/MipsLinux.cpp
lib/Frontend/ModuleDependencyCollector.cpp
lib/Sema/SemaDecl.cpp
lib/Serialization/ASTReader.cpp

index eae010a4bd5fa4536ee2fda5f4abc7d9ef51e28d..4f04489a4a10dde9cbca98083be42c83fe5e0aa3 100644 (file)
@@ -2706,7 +2706,7 @@ class X86TargetInfo : public TargetInfo {
     CK_C3_2,
 
     /// This enumerator is a bit odd, as GCC no longer accepts -march=yonah.
-    /// Clang however has some logic to suport this.
+    /// Clang however has some logic to support this.
     // FIXME: Warn, deprecate, and potentially remove this.
     CK_Yonah,
     //@}
index 709c396a64b79096d1c97764f5b434bcf59f41e4..b394208336edb256fa3cf6c32d5c8259dbe676c4 100644 (file)
@@ -109,7 +109,7 @@ std::string MipsLLVMToolChain::findLibCxxIncludePath() const {
 void MipsLLVMToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
                                             ArgStringList &CmdArgs) const {
   assert((GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) &&
-         "Only -lc++ (aka libxx) is suported in this toolchain.");
+         "Only -lc++ (aka libxx) is supported in this toolchain.");
 
   CmdArgs.push_back("-lc++");
   CmdArgs.push_back("-lc++abi");
index 9b34d42113532babe6e74c53d261f43efc13061c..ede12aab6e695144774167d1c6d0facd14d2cbb5 100644 (file)
@@ -248,7 +248,7 @@ std::error_code ModuleDependencyCollector::copyToRoot(StringRef Src,
   // Always map a canonical src path to its real path into the YAML, by doing
   // this we map different virtual src paths to the same entry in the VFS
   // overlay, which is a way to emulate symlink inside the VFS; this is also
-  // needed for correctness, not doing that can lead to module redifinition
+  // needed for correctness, not doing that can lead to module redefinition
   // errors.
   addFileMapping(VirtualPath, CacheDst);
   return std::error_code();
index 59bfa49066c5bae24fead645cd828fca1c613794..ef8a408f90de9ce99b05c90adb4766856f5f33f7 100644 (file)
@@ -11975,7 +11975,7 @@ Sema::CheckForFunctionRedefinition(FunctionDecl *FD,
   if (canRedefineFunction(Definition, getLangOpts()))
     return;
 
-  // Don't emit an error when this is redifinition of a typo-corrected
+  // Don't emit an error when this is redefinition of a typo-corrected
   // definition.
   if (TypoCorrectedFunctionDefinitions.count(Definition))
     return;
index f9421c788d93d301f19d00b2d0af20c6394773b0..3aee3c04001dded5250064ef22553c7a5449b655 100644 (file)
@@ -8263,7 +8263,7 @@ ASTReader::getSourceDescriptor(unsigned ID) {
     return ExternalASTSource::ASTSourceDescriptor(*M);
 
   // If there is only a single PCH, return it instead.
-  // Chained PCH are not suported.
+  // Chained PCH are not supported.
   const auto &PCHChain = ModuleMgr.pch_modules();
   if (std::distance(std::begin(PCHChain), std::end(PCHChain))) {
     ModuleFile &MF = ModuleMgr.getPrimaryModule();