diff options
author | John Criswell <criswell@uiuc.edu> | 2004-03-02 15:54:25 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2004-03-02 15:54:25 +0000 |
commit | c9699ccce2fa5447466691feec05217188e806e4 (patch) | |
tree | d48693ec89284127dfdee930a25aeff71020eb94 /utils | |
parent | 89157a27dca7d617894273ddcb7a68ddaeaa6266 (diff) | |
download | external_llvm-c9699ccce2fa5447466691feec05217188e806e4.zip external_llvm-c9699ccce2fa5447466691feec05217188e806e4.tar.gz external_llvm-c9699ccce2fa5447466691feec05217188e806e4.tar.bz2 |
Added EH support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/llvm-native-gcc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/llvm-native-gcc b/utils/llvm-native-gcc index e53da07..b3cecb1 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) { |