diff options
author | Fangrui Song <maskray@google.com> | 2018-12-21 22:57:11 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-12-21 22:57:11 +0000 |
commit | 37dc10942602c6647b5897973ddccf2f9bbfbf6c (patch) | |
tree | d0f39d4071e232df393ccdbf5e63e8b63ba534c7 /lld | |
parent | fff4b7ab30bedec2fb9c0ad60ca9955fceb471e8 (diff) |
keymethod -> keyfunction
Pointed out by ruiu in rLLD349969
Diffstat (limited to 'lld')
-rw-r--r-- | lld/ELF/Relocations.cpp | 2 | ||||
-rw-r--r-- | lld/docs/missingkeyfunction.rst (renamed from lld/docs/missingkeymethod.rst) | 2 | ||||
-rw-r--r-- | lld/test/ELF/undef.s | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 57a43977101..c10e5615013 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -665,7 +665,7 @@ static bool maybeReportUndefined(Symbol &Sym, InputSectionBase &Sec, if (Sym.getName().startswith("_ZTV")) Msg += "\nthe vtable symbol may be undefined because the class is missing " - "its key function (see https://lld.llvm.org/missingkeymethod)"; + "its key function (see https://lld.llvm.org/missingkeyfunction)"; if ((Config->UnresolvedSymbols == UnresolvedPolicy::Warn && CanBeExternal) || Config->NoinhibitExec) { diff --git a/lld/docs/missingkeymethod.rst b/lld/docs/missingkeyfunction.rst index 7e63a4008b2..410c749c3b0 100644 --- a/lld/docs/missingkeymethod.rst +++ b/lld/docs/missingkeyfunction.rst @@ -4,7 +4,7 @@ Missing Key Method If your build failed with a linker error something like this:: foo.cc:28: error: undefined reference to 'vtable for C' - the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeymethod) + the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) it's likely that your class C has a key function (defined by the ABI as the first non-pure, non-inline, virtual method), but you haven't actually defined it. diff --git a/lld/test/ELF/undef.s b/lld/test/ELF/undef.s index 6fef015f230..e6277e36667 100644 --- a/lld/test/ELF/undef.s +++ b/lld/test/ELF/undef.s @@ -21,7 +21,7 @@ # CHECK: >>> {{.*}}:(.text+0x10) # CHECK: error: undefined symbol: vtable for Foo -# CHECK: the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeymethod) +# CHECK: the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) # CHECK: error: undefined symbol: zed2 # CHECK: >>> referenced by {{.*}}.o:(.text+0x0) in archive {{.*}}2.a |