diff options
author | Paul Kirth <paulkirth@google.com> | 2023-06-13 21:39:14 +0000 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2023-07-19 23:07:45 +0000 |
commit | 421e4026111315d002879b1e7a0cf3aacd00f488 (patch) | |
tree | abf3699b6512eb08fd0d2b89ca81f64d3fdd51e3 /llvm/lib/Object/ObjectFile.cpp | |
parent | 3a45b843dec1bca195884aa1c5bc56bd0e6755b4 (diff) | |
download | llvm-421e4026111315d002879b1e7a0cf3aacd00f488.zip llvm-421e4026111315d002879b1e7a0cf3aacd00f488.tar.gz llvm-421e4026111315d002879b1e7a0cf3aacd00f488.tar.bz2 |
[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.
Depends on D146778
Reviewed By: MaskRay
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; } |