Skip to content

Commit 58199df

Browse files
[NFC] Typo fix (#74033)
Fix spelling error from `linakge` to `linkage`. Co-authored-by: lifengxiang <[email protected]>
1 parent cf1a979 commit 58199df

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

llvm/include/llvm/ProfileData/SampleProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ template <> struct DenseMapInfo<SampleContext> {
15611561
// Prepend "__uniq" before the hash for tools like profilers to understand
15621562
// that this symbol is of internal linkage type. The "__uniq" is the
15631563
// pre-determined prefix that is used to tell tools that this symbol was
1564-
// created with -funique-internal-linakge-symbols and the tools can strip or
1564+
// created with -funique-internal-linkage-symbols and the tools can strip or
15651565
// keep the prefix as needed.
15661566
inline std::string getUniqueInternalLinkagePostfix(const StringRef &FName) {
15671567
llvm::MD5 Md5;

llvm/lib/MC/MCAsmStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class MCAsmStreamer final : public MCStreamer {
190190
void emitXCOFFLocalCommonSymbol(MCSymbol *LabelSym, uint64_t Size,
191191
MCSymbol *CsectSym, Align Alignment) override;
192192
void emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol,
193-
MCSymbolAttr Linakge,
193+
MCSymbolAttr Linkage,
194194
MCSymbolAttr Visibility) override;
195195
void emitXCOFFRenameDirective(const MCSymbol *Name,
196196
StringRef Rename) override;

llvm/tools/llvm-profdata/llvm-profdata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,12 +1006,12 @@ adjustInstrProfile(std::unique_ptr<WriterContext> &WC,
10061006
// If sample profile and instrumented profile do not agree on symbol
10071007
// uniqification.
10081008
if (SampleProfileHasFUnique != ProfileHasFUnique) {
1009-
// If instrumented profile uses -funique-internal-linakge-symbols,
1009+
// If instrumented profile uses -funique-internal-linkage-symbols,
10101010
// we need to trim the name.
10111011
if (ProfileHasFUnique) {
10121012
NewName = NewName.substr(0, PostfixPos);
10131013
} else {
1014-
// If sample profile uses -funique-internal-linakge-symbols,
1014+
// If sample profile uses -funique-internal-linkage-symbols,
10151015
// we build the map.
10161016
std::string NStr =
10171017
NewName.str() + getUniqueInternalLinkagePostfix(FName);

0 commit comments

Comments
 (0)