diff options
Diffstat (limited to 'tools/driver/NativeCompiler.h')
| -rw-r--r-- | tools/driver/NativeCompiler.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/driver/NativeCompiler.h b/tools/driver/NativeCompiler.h new file mode 100644 index 0000000..17933e9 --- /dev/null +++ b/tools/driver/NativeCompiler.h @@ -0,0 +1,9 @@ +#pragma once + +#include "llvm/ADT/StringRef.h" + +namespace cps { class CodeGen; } + +// Generate a host executable without an external compiler, linker or SDK. +// Failure leaves any existing output intact and reports a diagnostic. +bool compileNative(const cps::CodeGen &CG, llvm::StringRef OutputPath); |
