mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Add cleaning pass after linking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a61d85f97
commit
9af7022d55
@ -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 $@
|
||||
|
@ -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 $@
|
||||
|
Loading…
Reference in New Issue
Block a user