diff --git a/llvm/include/llvm/ProfileData/SampleProf.h b/llvm/include/llvm/ProfileData/SampleProf.h index a7edfecc1aa6f..f001f5ee9d39b 100644 --- a/llvm/include/llvm/ProfileData/SampleProf.h +++ b/llvm/include/llvm/ProfileData/SampleProf.h @@ -1561,7 +1561,7 @@ template <> struct DenseMapInfo { // Prepend "__uniq" before the hash for tools like profilers to understand // that this symbol is of internal linkage type. The "__uniq" is the // pre-determined prefix that is used to tell tools that this symbol was -// created with -funique-internal-linakge-symbols and the tools can strip or +// created with -funique-internal-linkage-symbols and the tools can strip or // keep the prefix as needed. inline std::string getUniqueInternalLinkagePostfix(const StringRef &FName) { llvm::MD5 Md5; diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp index fb809f4010f77..5a157fc36d8e2 100644 --- a/llvm/lib/MC/MCAsmStreamer.cpp +++ b/llvm/lib/MC/MCAsmStreamer.cpp @@ -190,7 +190,7 @@ class MCAsmStreamer final : public MCStreamer { void emitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size, MCSymbol *CsectSym, Align Alignment) override; void emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol, - MCSymbolAttr Linakge, + MCSymbolAttr Linkage, MCSymbolAttr Visibility) override; void emitXCOFFRenameDirective(const MCSymbol *Name, StringRef Rename) override; diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index b9df3f97c8fa9..63e34d81f1892 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -1006,12 +1006,12 @@ adjustInstrProfile(std::unique_ptr &WC, // If sample profile and instrumented profile do not agree on symbol // uniqification. if (SampleProfileHasFUnique != ProfileHasFUnique) { - // If instrumented profile uses -funique-internal-linakge-symbols, + // If instrumented profile uses -funique-internal-linkage-symbols, // we need to trim the name. if (ProfileHasFUnique) { NewName = NewName.substr(0, PostfixPos); } else { - // If sample profile uses -funique-internal-linakge-symbols, + // If sample profile uses -funique-internal-linkage-symbols, // we build the map. std::string NStr = NewName.str() + getUniqueInternalLinkagePostfix(FName);