mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Eliminate cleaning step for individual %.bc files created by our gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f87fc32e35
commit
19560c3fd3
@ -52,6 +52,7 @@ ifdef PROG
|
||||
$(PROG).linked.bc: $(BCOBJS)
|
||||
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
|
||||
$(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
|
||||
$(RM) $(PROG).tmp.bc
|
||||
|
||||
$(PROG).native: $(OBJS:.o=.c)
|
||||
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
|
||||
@ -81,9 +82,7 @@ clean :
|
||||
## $(LCC) $(LCFLAGS) -S $< -o $*.ll
|
||||
|
||||
%.bc: %.c
|
||||
$(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc
|
||||
$(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@
|
||||
$(RM) $*.tmp.bc
|
||||
$(LCC) $(LCFLAGS) -c $< -o $@
|
||||
|
||||
%.bc: %.ll
|
||||
$(LAS) -f $<
|
||||
|
@ -52,6 +52,7 @@ ifdef PROG
|
||||
$(PROG).linked.bc: $(BCOBJS)
|
||||
$(LLINK) -f $(BCOBJS) -o $(PROG).tmp.bc
|
||||
$(LOPT) -cleangcc -raise -constprop -dce $(PROG).tmp.bc -o $@
|
||||
$(RM) $(PROG).tmp.bc
|
||||
|
||||
$(PROG).native: $(OBJS:.o=.c)
|
||||
gcc $(OBJS:.o=.c) -O2 $(LOCAL_CFLAGS) -Wall -o $@
|
||||
@ -81,9 +82,7 @@ clean :
|
||||
## $(LCC) $(LCFLAGS) -S $< -o $*.ll
|
||||
|
||||
%.bc: %.c
|
||||
$(LCC) $(LCFLAGS) -c $< -o $*.tmp.bc
|
||||
$(LOPT) -cleangcc -raise -constprop -dce $*.tmp.bc -o $@
|
||||
$(RM) $*.tmp.bc
|
||||
$(LCC) $(LCFLAGS) -c $< -o $@
|
||||
|
||||
%.bc: %.ll
|
||||
$(LAS) -f $<
|
||||
|
Loading…
Reference in New Issue
Block a user