[PATCH] D141824: [clang-repl] Add a command to load dynamic libraries

Anubhab Ghosh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 16 01:27:01 PST 2023


argentite created this revision.
Herald added a project: All.
argentite added reviewers: v.g.vassilev, lhames, sgraenitz.
argentite published this revision for review.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This commit adds the %lib <name> command to load a dynamic library to be
used by the currently running interpreted code. For example `%lib SDL2`
loads libSDL2.so on Linux and SDL2.dll on Windows automatically.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141824

Files:
  clang/include/clang/Interpreter/Interpreter.h
  clang/lib/Interpreter/IncrementalExecutor.h
  clang/lib/Interpreter/Interpreter.cpp
  clang/tools/clang-repl/ClangRepl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141824.489452.patch
Type: text/x-patch
Size: 5098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230116/2289eb79/attachment.bin>


More information about the cfe-commits mailing list