From c9699ccce2fa5447466691feec05217188e806e4 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Tue, 2 Mar 2004 15:54:25 +0000 Subject: [PATCH] Added EH support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12075 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/llvm-native-gcc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/llvm-native-gcc b/utils/llvm-native-gcc index e53da07d9d6..b3cecb14118 100755 --- a/utils/llvm-native-gcc +++ b/utils/llvm-native-gcc @@ -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) {