1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Updated to use llc to generate CBE code.

llvm-svn: 11823
This commit is contained in:
John Criswell 2004-02-25 17:15:02 +00:00
parent 1dfc1b9629
commit cf4474a67b

View File

@ -114,7 +114,7 @@ sub CompileBytecodeToNative {
} else {
$GeneratedCode = "/tmp/nativebuild-$$.c";
}
run "llvm-dis -c -f -o $GeneratedCode $BCFile";
run "llc -march=c -f -o $GeneratedCode $BCFile";
} elsif ($Backend eq 'llc') {
if ($SaveTemps) {
$GeneratedCode = "${OutputFile}.s";
@ -145,7 +145,7 @@ sub CompileCToNative {
my $GeneratedCode;
if ($Backend eq 'cbe') {
$GeneratedCode = "${OutputFile}.cbe.c";
run "llvm-dis -c -f -o $GeneratedCode $BCFile";
run "llc -march=c -f -o $GeneratedCode $BCFile";
} elsif ($Backend eq 'llc') {
$GeneratedCode = "${OutputFile}.llc.s";
run "llc -f -o $GeneratedCode $BCFile";