mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +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);
|
unwrap(cg)->addMustPreserveSymbol(symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void maybeParseOptions() {
|
static void maybeParseOptions(lto_code_gen_t cg) {
|
||||||
if (!parsedOptions) {
|
if (!parsedOptions) {
|
||||||
unwrap(cg)->parseCodeGenDebugOptions();
|
unwrap(cg)->parseCodeGenDebugOptions();
|
||||||
lto_add_attrs(cg);
|
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) {
|
bool lto_codegen_write_merged_modules(lto_code_gen_t cg, const char *path) {
|
||||||
maybeParseOptions();
|
maybeParseOptions(cg);
|
||||||
return !unwrap(cg)->writeMergedModules(path, sLastErrorString);
|
return !unwrap(cg)->writeMergedModules(path, sLastErrorString);
|
||||||
}
|
}
|
||||||
|
|
||||||
const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) {
|
const void *lto_codegen_compile(lto_code_gen_t cg, size_t *length) {
|
||||||
maybeParseOptions();
|
maybeParseOptions(cg);
|
||||||
return unwrap(cg)->compile(length, DisableInline,
|
return unwrap(cg)->compile(length, DisableInline,
|
||||||
DisableGVNLoadPRE, DisableLTOVectorization,
|
DisableGVNLoadPRE, DisableLTOVectorization,
|
||||||
sLastErrorString);
|
sLastErrorString);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lto_codegen_optimize(lto_code_gen_t cg) {
|
bool lto_codegen_optimize(lto_code_gen_t cg) {
|
||||||
maybeParseOptions();
|
maybeParseOptions(cg);
|
||||||
return !unwrap(cg)->optimize(DisableInline,
|
return !unwrap(cg)->optimize(DisableInline,
|
||||||
DisableGVNLoadPRE, DisableLTOVectorization,
|
DisableGVNLoadPRE, DisableLTOVectorization,
|
||||||
sLastErrorString);
|
sLastErrorString);
|
||||||
}
|
}
|
||||||
|
|
||||||
const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) {
|
const void *lto_codegen_compile_optimized(lto_code_gen_t cg, size_t *length) {
|
||||||
maybeParseOptions();
|
maybeParseOptions(cg);
|
||||||
return unwrap(cg)->compileOptimized(length, sLastErrorString);
|
return unwrap(cg)->compileOptimized(length, sLastErrorString);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) {
|
bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) {
|
||||||
maybeParseOptions();
|
maybeParseOptions(cg);
|
||||||
return !unwrap(cg)->compile_to_file(
|
return !unwrap(cg)->compile_to_file(
|
||||||
name, DisableInline, DisableGVNLoadPRE,
|
name, DisableInline, DisableGVNLoadPRE,
|
||||||
DisableLTOVectorization, sLastErrorString);
|
DisableLTOVectorization, sLastErrorString);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user