[all-commits] [llvm/llvm-project] d97873: [clang-repl] Add a command to load dynamic libraries

Anubhab Ghosh via All-commits all-commits at lists.llvm.org
Tue Mar 28 19:36:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d978730d8e2c10c76867b83bec2f1143d895ee7d
      https://github.com/llvm/llvm-project/commit/d978730d8e2c10c76867b83bec2f1143d895ee7d
  Author: Anubhab Ghosh <anubhabghosh.me at gmail.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M clang/include/clang/Interpreter/Interpreter.h
    M clang/lib/Interpreter/IncrementalExecutor.h
    M clang/lib/Interpreter/Interpreter.cpp
    A clang/test/Interpreter/Inputs/dynamic-library-test.cpp
    A clang/test/Interpreter/dynamic-library.cpp
    M clang/tools/clang-repl/ClangRepl.cpp

  Log Message:
  -----------
  [clang-repl] Add a command to load dynamic libraries

This commit adds the %lib <file> command to load a dynamic library to be
used by the currently running interpreted code.
For example `%lib libSDL2.so`.

Differential Revision: https://reviews.llvm.org/D141824




More information about the All-commits mailing list