aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/PathRunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/driver/PathRunner.h')
-rw-r--r--tools/driver/PathRunner.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/driver/PathRunner.h b/tools/driver/PathRunner.h
new file mode 100644
index 0000000..2043d4f
--- /dev/null
+++ b/tools/driver/PathRunner.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <string>
+#include <vector>
+
+// Finds PATH's lli for -r and checks that it is from LLVM 23. Reports a fatal
+// error and returns false otherwise.
+bool findLli(std::string &LliPath);
+
+// Executes the IR at IRPath with lli and returns the program's status.
+// Objects named by INCLUDE_OBJ are passed to lli as extra objects.
+int runLli(const std::string &LliPath, const std::string &IRPath,
+ const std::vector<std::string> &Objects);