We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dfa6f5 commit 1408ee2Copy full SHA for 1408ee2
llvm/tools/llvm-exegesis/lib/Assembler.cpp
@@ -332,7 +332,11 @@ Expected<ExecutableFunction> ExecutableFunction::create(
332
std::unique_ptr<LLVMContext> Ctx = std::make_unique<LLVMContext>();
333
334
auto SymbolSizes = object::computeSymbolSizes(*ObjectFileHolder.getBinary());
335
+ // Get the size of the function that we want to call into (with the name of
336
+ // FunctionID). This should always be the third symbol returned by
337
+ // calculateSymbolSizes.
338
assert(SymbolSizes.size() == 3);
339
+ assert(cantFail(std::get<0>(SymbolSizes[2]).getName()) == FunctionID);
340
uintptr_t CodeSize = std::get<1>(SymbolSizes[2]);
341
342
auto EJITOrErr = orc::LLJITBuilder().create();
0 commit comments