Asserting the multiple JITDylib's with same name are not added to the Execution Session. Adding a method to get pointers to JITDylibs in ExecutionSession.
Fixes PR41937
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Wrapping the getJITDylibByName by runSessionLocked Interface to make thread safe creation of JITDylibs
Comment Actions
Yeah -- this seems to be missing the header side of the patch. You should be able to use the "update diff" option to create a new diff (still attached to this revision) with both sides of the change.
Comment Actions
Oh -- I missed that this was passing the name as a std::string by value. This will result in unnecessary string copies. In general for a case like this you would use an llvm::StringRef -- It's a lightweight string reference type. I'll switch to that before committing.
Comment Actions
Thanks :)
Then we can change parameter type of createJITDylib to StringRef instead of std::string.