1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add cleaning pass after linking.

llvm-svn: 1208
This commit is contained in:
Vikram S. Adve 2001-11-08 18:13:17 +00:00
parent 1f95b36e06
commit 4a979f9321
2 changed files with 8 additions and 4 deletions

View File

@ -50,7 +50,8 @@ ifdef PROG
endif
$(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $@
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
$(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
$(PROG).native: $(OBJS:.o=.c)
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
@ -87,8 +88,9 @@ clean :
%.bc: %.ll
$(LAS) -f $<
## There is just one file so omit link step and just clean
%.linked.bc: %.bc
$(CP) $< $@
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@
%.clean.bc: %.bc
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@

View File

@ -50,7 +50,8 @@ ifdef PROG
endif
$(PROG).linked.bc: $(BCOBJS)
$(LLINK) -f $(BCOBJS) -o $@
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
$(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
$(PROG).native: $(OBJS:.o=.c)
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
@ -87,8 +88,9 @@ clean :
%.bc: %.ll
$(LAS) -f $<
## There is just one file so omit link step and just clean
%.linked.bc: %.bc
$(CP) $< $@
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@
%.clean.bc: %.bc
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@