mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +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.
|
||||
$Verbose = 0;
|
||||
$SaveTemps = 0;
|
||||
$SaveTemps = 1;
|
||||
$PreprocessOnly = 0;
|
||||
$CompileDontLink = 0;
|
||||
$Backend = 'cbe';
|
||||
@ -114,14 +114,14 @@ sub CompileBytecodeToNative {
|
||||
} else {
|
||||
$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') {
|
||||
if ($SaveTemps) {
|
||||
$GeneratedCode = "${OutputFile}.s";
|
||||
} else {
|
||||
$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 $Libs = join (" ", @Libs);
|
||||
@ -145,10 +145,10 @@ sub CompileCToNative {
|
||||
my $GeneratedCode;
|
||||
if ($Backend eq 'cbe') {
|
||||
$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') {
|
||||
$GeneratedCode = "${OutputFile}.llc.s";
|
||||
run "llc -f -o $GeneratedCode $BCFile";
|
||||
run "llc -enable-correct-eh-support -f -o $GeneratedCode $BCFile";
|
||||
}
|
||||
my $NativeGCCOptions = "";
|
||||
if ($CompileDontLink) {
|
||||
|
Loading…
Reference in New Issue
Block a user