From cac4b8ea04b856c0d0d5d49739bdb3ce37486b20 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Wed, 25 Feb 2004 17:15:02 +0000 Subject: Updated to use llc to generate CBE code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11823 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/llvm-native-gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/llvm-native-gcc') diff --git a/utils/llvm-native-gcc b/utils/llvm-native-gcc index fb29252330..e53da07d9d 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"; -- cgit v1.2.3-18-g5258