mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Added EH support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89157a27dc
commit
c9699ccce2
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# set up defaults.
|
# set up defaults.
|
||||||
$Verbose = 0;
|
$Verbose = 0;
|
||||||
$SaveTemps = 0;
|
$SaveTemps = 1;
|
||||||
$PreprocessOnly = 0;
|
$PreprocessOnly = 0;
|
||||||
$CompileDontLink = 0;
|
$CompileDontLink = 0;
|
||||||
$Backend = 'cbe';
|
$Backend = 'cbe';
|
||||||
@ -114,14 +114,14 @@ sub CompileBytecodeToNative {
|
|||||||
} else {
|
} else {
|
||||||
$GeneratedCode = "/tmp/nativebuild-$$.c";
|
$GeneratedCode = "/tmp/nativebuild-$$.c";
|
||||||
}
|
}
|
||||||
run "llc -march=c -f -o $GeneratedCode $BCFile";
|
run "llc -enable-correct-eh-support -march=c -f -o $GeneratedCode $BCFile";
|
||||||
} elsif ($Backend eq 'llc') {
|
} elsif ($Backend eq 'llc') {
|
||||||
if ($SaveTemps) {
|
if ($SaveTemps) {
|
||||||
$GeneratedCode = "${OutputFile}.s";
|
$GeneratedCode = "${OutputFile}.s";
|
||||||
} else {
|
} else {
|
||||||
$GeneratedCode = "/tmp/nativebuild-$$.s";
|
$GeneratedCode = "/tmp/nativebuild-$$.s";
|
||||||
}
|
}
|
||||||
run "llc -f -o $GeneratedCode $BCFile";
|
run "llc -enable-correct-eh-support -f -o $GeneratedCode $BCFile";
|
||||||
}
|
}
|
||||||
my $LibDirs = join (" ", @LibDirs);
|
my $LibDirs = join (" ", @LibDirs);
|
||||||
my $Libs = join (" ", @Libs);
|
my $Libs = join (" ", @Libs);
|
||||||
@ -145,10 +145,10 @@ sub CompileCToNative {
|
|||||||
my $GeneratedCode;
|
my $GeneratedCode;
|
||||||
if ($Backend eq 'cbe') {
|
if ($Backend eq 'cbe') {
|
||||||
$GeneratedCode = "${OutputFile}.cbe.c";
|
$GeneratedCode = "${OutputFile}.cbe.c";
|
||||||
run "llc -march=c -f -o $GeneratedCode $BCFile";
|
run "llc -enable-correct-eh-support -march=c -f -o $GeneratedCode $BCFile";
|
||||||
} elsif ($Backend eq 'llc') {
|
} elsif ($Backend eq 'llc') {
|
||||||
$GeneratedCode = "${OutputFile}.llc.s";
|
$GeneratedCode = "${OutputFile}.llc.s";
|
||||||
run "llc -f -o $GeneratedCode $BCFile";
|
run "llc -enable-correct-eh-support -f -o $GeneratedCode $BCFile";
|
||||||
}
|
}
|
||||||
my $NativeGCCOptions = "";
|
my $NativeGCCOptions = "";
|
||||||
if ($CompileDontLink) {
|
if ($CompileDontLink) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user