aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/NativeCompiler.h
blob: 17933e918b8d347be4e4160b7b7c8f26789b2f02 (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);