aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2023-07-20 20:53:08 +0000
committerPaul Kirth <paulkirth@google.com>2023-07-20 20:53:08 +0000
commit2f34288b2476339e532a59fc43723b6de1a9ef08 (patch)
tree73770f43fd6fc2dff89318fc65fd0fe1d283dea7 /llvm/lib/Object/ObjectFile.cpp
parenteb3f2fe467f10b29c407e642e8a505ee6800c1d8 (diff)
downloadllvm-2f34288b2476339e532a59fc43723b6de1a9ef08.zip
llvm-2f34288b2476339e532a59fc43723b6de1a9ef08.tar.gz
llvm-2f34288b2476339e532a59fc43723b6de1a9ef08.tar.bz2
Revert "[gold] Add preliminary FatLTO support to the Gold plugin"
This reverts commit 421e4026111315d002879b1e7a0cf3aacd00f488. One of the test needs a requires line, but we've also seen some issues for downstream projects that may need coordination, so I'm reverting this for until we can address those issues. see https://reviews.llvm.org/D152973#4520240 for context.
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index 2a67246..0820187 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 == ".llvm.lto";
+ return *NameOrErr == ".llvmbc" || *NameOrErr == ".llvm.lto";
consumeError(NameOrErr.takeError());
return false;
}