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:
John Criswell 2004-03-02 15:54:25 +00:00
parent 89157a27dc
commit c9699ccce2

View File

@ -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) {