[all-commits] [llvm/llvm-project] c619d4: [clang-repl] Support destructors of global objects.

Sunho Kim via All-commits all-commits at lists.llvm.org
Thu Jul 28 10:39:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c619d4f840dcba54751ff8c5aaafce0f173a4ad5
      https://github.com/llvm/llvm-project/commit/c619d4f840dcba54751ff8c5aaafce0f173a4ad5
  Author: Sunho Kim <ksunhokim123 at naver.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M clang/lib/Interpreter/IncrementalExecutor.cpp
    M clang/lib/Interpreter/IncrementalExecutor.h
    M clang/lib/Interpreter/Interpreter.cpp
    M clang/test/Interpreter/execute.cpp
    A clang/test/Interpreter/global-dtor-win.cpp
    A clang/test/Interpreter/global-dtor.cpp
    M clang/tools/clang-repl/ClangRepl.cpp

  Log Message:
  -----------
   [clang-repl] Support destructors of global objects.

Supports destructors of global objects by properly calling jitdylib deinitialize which calls the global dtors of ir modules.

This supersedes https://reviews.llvm.org/D127945. There was an issue when calling deinitialize on windows but it got fixed by https://reviews.llvm.org/D128037.

Reviewed By: v.g.vassilev

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




More information about the All-commits mailing list