aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/NativeCompiler.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-18 08:11:39 +0000
committer_ov4 <ov4@ov4.org>2026-10-18 08:11:39 +0000
commitcd3c09a5c2566d674680193042baf6474b6d0976 (patch)
tree50276c3de1ee4262eccbddb4240bf4267c04a15f /tools/driver/NativeCompiler.h
parent30fced09675acfd2b9ab6db6be8359a70d3f0402 (diff)
feat(driver): load the embedded C++ runtime into the JIT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/driver/NativeCompiler.h')
-rw-r--r--tools/driver/NativeCompiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/driver/NativeCompiler.h b/tools/driver/NativeCompiler.h
index ffc38f1..54b690f 100644
--- a/tools/driver/NativeCompiler.h
+++ b/tools/driver/NativeCompiler.h
@@ -2,6 +2,8 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
+#include "llvm/Support/MemoryBuffer.h"
+#include <memory>
#include <string>
#include <vector>
@@ -19,3 +21,6 @@ bool collectObjectSymbols(llvm::StringRef Path, llvm::StringSet<> &Out, std::str
// Defined global symbols of the embedded C library (INCLUDE_OBJ "__libc").
bool collectLibcSymbols(llvm::StringSet<> &Out);
+
+// Owning copies of the embedded C++ and compiler-support static archives.
+bool unpackCxxRuntime(std::vector<std::unique_ptr<llvm::MemoryBuffer>> &Archives);