diff options
Diffstat (limited to 'lld/ELF/Driver.cpp')
-rw-r--r-- | lld/ELF/Driver.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 7f01f6a0b52..556a6aa0015 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -690,22 +690,6 @@ template <class ELFT> static void readCallGraphsFromObjectFiles() { continue; auto *FromSec = dyn_cast_or_null<InputSectionBase>(FromSym->Section); auto *ToSec = dyn_cast_or_null<InputSectionBase>(ToSym->Section); - - // The profile from .llvm.call-graph-profile is conceptually affiliated to - // FromSec. Don't warn unorderable symbol if FromSym is not absolute - // (FromSec isn't null) and the section is discarded - // (!FromSec->Repl->Live). - // - // We also don't want to warn when ToSym is undefined or is in a shared - // object (as symbols in shared objects are fixed and unorderable). - // - // The check used here is more relaxed (no warning if either FromSym or - // ToSym is not Defined) for simplicity and there is no compelling reason - // to warn on more cases. - if (!FromSec || FromSec->Repl->Live) { - warnUnorderableSymbol(FromSym); - warnUnorderableSymbol(ToSym); - } if (FromSec && ToSec) Config->CallGraphProfile[{FromSec, ToSec}] += CGPE.cgp_weight; } |