File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -174,25 +174,10 @@ int main(int argc, char *argv[]) {
174
174
TSMs.push_back (ExitOnErr (parseExampleModuleFromFile (Path)));
175
175
}
176
176
177
- std::string TT;
178
- StringRef MainModuleName;
179
- TSMs.front ().withModuleDo ([&MainModuleName, &TT](Module &M) {
180
- MainModuleName = M.getName ();
181
- TT = M.getTargetTriple ();
182
- if (TT.empty ())
183
- TT = sys::getProcessTriple ();
184
- });
185
-
186
- // Create a target machine that matches the input triple.
187
- JITTargetMachineBuilder JTMB ((Triple (TT)));
188
- JTMB.setCodeModel (CodeModel::Small);
189
- JTMB.setRelocationModel (Reloc::PIC_);
190
-
191
177
// Create LLJIT and destroy it before disconnecting the target process.
192
178
outs () << " Initializing LLJIT for remote executor\n " ;
193
179
auto J = ExitOnErr (LLJITBuilder ()
194
180
.setExecutorProcessControl (std::move (EPC))
195
- .setJITTargetMachineBuilder (std::move (JTMB))
196
181
.setObjectLinkingLayerCreator ([&](auto &ES, const auto &TT) {
197
182
return std::make_unique<ObjectLinkingLayer>(ES);
198
183
})
You can’t perform that action at this time.
0 commit comments