From cf4474a67b1341d55e17bcf71d6ae3979ddbd13c Mon Sep 17 00:00:00 2001 From: John Criswell Date: Wed, 25 Feb 2004 17:15:02 +0000 Subject: [PATCH] Updated to use llc to generate CBE code. llvm-svn: 11823 --- utils/llvm-native-gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/llvm-native-gcc b/utils/llvm-native-gcc index fb292523308..e53da07d9d6 100755 --- a/utils/llvm-native-gcc +++ b/utils/llvm-native-gcc @@ -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";