Move all of the GoogleTest files back to the same locations they occupy
[oota-llvm.git] / utils / llvm-native-gcc
index e53da07d9d63d7312e749a51b0ca9f51d2360688..91a557cc161db26df1cf322b968d8473b6f117f3 100755 (executable)
@@ -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) {
@@ -193,10 +193,10 @@ native-build [OPTIONS...] FILE
 
 llvm-native-gcc is a wrapper around the LLVM command-line tools which generates
 a native object (.o) file by compiling FILE with llvm-gcc, and then running 
-an LLVM back-end (CBE by default) over the resulting bytecode, and then
+an LLVM back-end (CBE by default) over the resulting bitcode, and then
 compiling the resulting code to a native object file.
 
-If called as "native-build", it compiles bytecode to native code, and takes
+If called as "native-build", it compiles bitcode to native code, and takes
 different options.
 
 =head1 OPTIONS