Run cleaning pass only when linking multiple files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2001-11-08 18:14:20 +00:00
parent 9af7022d55
commit 5efe19801e
2 changed files with 2 additions and 4 deletions

View File

@ -88,9 +88,8 @@ clean :
%.bc: %.ll
$(LAS) -f $<
## There is just one file so omit link step and just clean
%.linked.bc: %.bc
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@
$(CP) $< $@
%.clean.bc: %.bc
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@

View File

@ -88,9 +88,8 @@ clean :
%.bc: %.ll
$(LAS) -f $<
## There is just one file so omit link step and just clean
%.linked.bc: %.bc
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@
$(CP) $< $@
%.clean.bc: %.bc
$(LOPT) -cleangcc -raise -constprop -dce $< -o $@