aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2021-08-18 20:41:12 +1000
committerLang Hames <lhames@gmail.com>2021-08-18 20:42:23 +1000
commit45ac5f5441818afa1b0ee4a3734583c8cc915a79 (patch)
tree6fa92008436e361519a9aef43f0da039cc307bb8 /llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
parent6c7956ea49ee30a4e81b5a0451a1e4293bcec3a8 (diff)
downloadllvm-45ac5f5441818afa1b0ee4a3734583c8cc915a79.zip
llvm-45ac5f5441818afa1b0ee4a3734583c8cc915a79.tar.gz
llvm-45ac5f5441818afa1b0ee4a3734583c8cc915a79.tar.bz2
Revert "[ORC-RT][ORC] Introduce ELF/*nix Platform and runtime support."
This reverts commit e256445bfff12013c3c4ad97da4aa69d25b175b5. This commit broke some of the bots (see e.g. https://lab.llvm.org/buildbot/#/builders/112/builds/8599). Reverting while I investigate.
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
index 3c22c93..fd26008 100644
--- a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
@@ -64,9 +64,9 @@ private:
LGI.SymbolFlags[ES.intern(Sym->getName())] = Flags;
}
- if ((G.getTargetTriple().isOSBinFormatMachO() && hasMachOInitSection(G)) ||
- (G.getTargetTriple().isOSBinFormatELF() && hasELFInitSection(G)))
- LGI.InitSymbol = makeInitSymbol(ES, G);
+ if (G.getTargetTriple().isOSBinFormatMachO())
+ if (hasMachOInitSection(G))
+ LGI.InitSymbol = makeInitSymbol(ES, G);
return LGI;
}
@@ -82,13 +82,6 @@ private:
return false;
}
- static bool hasELFInitSection(LinkGraph &G) {
- for (auto &Sec : G.sections())
- if (Sec.getName() == ".init_array")
- return true;
- return false;
- }
-
static SymbolStringPtr makeInitSymbol(ExecutionSession &ES, LinkGraph &G) {
std::string InitSymString;
raw_string_ostream(InitSymString)