mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fix build failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58e8e3505d
commit
10f24ca2ad
@ -289,7 +289,7 @@ void lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg,
|
||||
unwrap(cg)->addMustPreserveSymbol(symbol);
|
||||
}
|
||||
|
||||
static void maybeParseOptions() {
|
||||
static void maybeParseOptions(lto_code_gen_t cg) {
|
||||
if (!parsedOptions) {
|
||||
unwrap(cg)->parseCodeGenDebugOptions();
|
||||
lto_add_attrs(cg);
|
||||
@ -298,31 +298,31 @@ static void maybeParseOptions() {
|
||||
}
|
||||
|
||||
bool lto_codegen_write_merged_modules(lto_code_gen_t cg, const char *path) {
|
||||
maybeParseOptions();
|
||||
maybeParseOptions(cg);
|
||||
return !unwrap(cg)->writeMergedModules(path, sLastErrorString);
|
||||
}
|
||||
|
||||
const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) {
|
||||
maybeParseOptions();
|
||||
maybeParseOptions(cg);
|
||||
return unwrap(cg)->compile(length, DisableInline,
|
||||
DisableGVNLoadPRE, DisableLTOVectorization,
|
||||
sLastErrorString);
|
||||
}
|
||||
|
||||
bool lto_codegen_optimize(lto_code_gen_t cg) {
|
||||
maybeParseOptions();
|
||||
maybeParseOptions(cg);
|
||||
return !unwrap(cg)->optimize(DisableInline,
|
||||
DisableGVNLoadPRE, DisableLTOVectorization,
|
||||
sLastErrorString);
|
||||
}
|
||||
|
||||
const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) {
|
||||
maybeParseOptions();
|
||||
maybeParseOptions(cg);
|
||||
return unwrap(cg)->compileOptimized(length, sLastErrorString);
|
||||
}
|
||||
|
||||
bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) {
|
||||
maybeParseOptions();
|
||||
maybeParseOptions(cg);
|
||||
return !unwrap(cg)->compile_to_file(
|
||||
name, DisableInline, DisableGVNLoadPRE,
|
||||
DisableLTOVectorization, sLastErrorString);
|
||||
|
Loading…
Reference in New Issue
Block a user