aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2023-02-21 21:22:28 -0800
committerLang Hames <lhames@gmail.com>2023-03-01 15:37:09 -0800
commit38d16f509a3faff3c545da5bfd5a8bcbd234ff24 (patch)
tree796c040be72ae29eaf3de608068916eca5a366f3 /llvm/tools
parenteffd56b0a03080d3d5460036efc425796bfc8882 (diff)
downloadllvm-38d16f509a3faff3c545da5bfd5a8bcbd234ff24.zip
llvm-38d16f509a3faff3c545da5bfd5a8bcbd234ff24.tar.gz
llvm-38d16f509a3faff3c545da5bfd5a8bcbd234ff24.tar.bz2
[ORC] Drop StaticLibraryDefinitionGenerator Load/Create overloads with triples.
We can get the triple from the ExecutionSession, so clients shouldn't have to provide it.
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/lli/lli.cpp2
-rw-r--r--llvm/tools/llvm-jitlink/llvm-jitlink.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 37132d1..808ec88 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -1058,7 +1058,7 @@ int runOrcJIT(const char *ProgName) {
auto JDItr = std::prev(IdxToDylib.lower_bound(EAIdx));
auto &JD = *JDItr->second;
JD.addGenerator(ExitOnErr(orc::StaticLibraryDefinitionGenerator::Load(
- J->getObjLinkingLayer(), EAItr->c_str(), *TT)));
+ J->getObjLinkingLayer(), EAItr->c_str())));
}
}
diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
index ed5d15b..be0fe17 100644
--- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
@@ -1631,8 +1631,7 @@ static Error addLibraries(Session &S,
break;
}
auto G = StaticLibraryDefinitionGenerator::Load(
- S.ObjLayer, Path, S.ES.getTargetTriple(),
- std::move(GetObjFileInterface));
+ S.ObjLayer, Path, std::move(GetObjFileInterface));
if (!G)
return G.takeError();