mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
keymethod -> keyfunction
Pointed out by ruiu in rLLD349969 llvm-svn: 349974
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user