aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/NativeCompiler.h
blob: 5e13c4dc02c68fab2e2c3f3f1dbeb2adc87e9b33 (plain)
1
2
3
4
5
6
7
8
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, const char *Argv0);