Run more post-link xforms

llvm-svn: 6400
This commit is contained in:
Chris Lattner 2003-05-29 15:16:45 +00:00
parent 03ef2fc167
commit d339f98844
1 changed files with 4 additions and 1 deletions

View File

@ -31,10 +31,13 @@ ifdef EXPORTED_SYMBOL_LIST
LLINK_OPTS += -internalize -internalize-public-api-list=$(EXPORTED_SYMBOL_LIST)
endif
# Standard set of postlink optimizations...
LLINK_OPTS += -inline -globaldce -funcresolve -deadtypeelim -instcombine -simplifycfg
# Link the library, then perform postlink optimization...
$(DESTLIBNAME): $(DESTLIBDIR)/.dir $(LObjects) $(LLINK) $(LOPT)
$(LLINK) -f $(LObjects) $(LDFLAGS) | \
$(LOPT) -f -q -funcresolve -deadtypeelim $(LLINK_OPTS) -globaldce -o $@
$(LOPT) -f -q $(LLINK_OPTS) -o $@
# Install target for libraries: Copy into the gcc install directory.
#