diff options
author | Paul Kirth <paulkirth@google.com> | 2023-07-20 20:58:22 +0000 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2023-08-18 22:56:48 +0000 |
commit | 6b539f5eb8ef1d3a3c87873caa2dbd5147e1adbd (patch) | |
tree | a2da40c25cf4dbfa5c061bd98795ea4bec519c6c /llvm/lib/Object/ObjectFile.cpp | |
parent | 14e3bec8fc3e1f10c3dc57277ae3dbf9a4087b1c (diff) | |
download | llvm-6b539f5eb8ef1d3a3c87873caa2dbd5147e1adbd.zip llvm-6b539f5eb8ef1d3a3c87873caa2dbd5147e1adbd.tar.gz llvm-6b539f5eb8ef1d3a3c87873caa2dbd5147e1adbd.tar.bz2 |
Reland "[gold] Add preliminary FatLTO support to the Gold plugin""
This changes the definition if isSectionBitcode to only be valid for the
.llvm.lto section, since this API is only called from LTO, and the
.llvmbc section was not intended to be used for LTO. This allows the
gold plugin to keep its existing behavior without introducing any
significant changes.
Reviewed By: MaskRay, nikic
Differential Revision: https://reviews.llvm.org/D152973
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/ObjectFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index 0820187..2a67246 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -79,7 +79,7 @@ uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; } bool ObjectFile::isSectionBitcode(DataRefImpl Sec) const { Expected<StringRef> NameOrErr = getSectionName(Sec); if (NameOrErr) - return *NameOrErr == ".llvmbc" || *NameOrErr == ".llvm.lto"; + return *NameOrErr == ".llvm.lto"; consumeError(NameOrErr.takeError()); return false; } |