mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
For PR797:
1. Actually turn on -fno-exceptions in libraries that do not have the REQUIRES_EH option in their Makefile. The following library file size savings were made (DEBUG): libLLVMDataStructure.a 525K libLLVMCore.a 380K libLLVMCodeGen.a 350K libLLVMTransformUtils.a 305K libLLVMScalarOpts.a 270K libLLVMAnalysis.a 247K libLLVMSelectionDAG.a 233K libLLVMipo.a 175K LLVMX86.o 123K LLVMPPC.o 81K libLLVMipa.a 17K TOTAL 2,706K Note that the savings is actually a little larger than this because I didn't count any of the libraries that had small changes. 2. Remove REQUIRES_EH from the AsmParser library as it is now exception free. This resulted in a nearly 78K drop in the size of the debug library for AsmParser. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40bb451c94
commit
f0646768be
@ -249,6 +249,11 @@ else
|
|||||||
C.Flags += -D_DEBUG
|
C.Flags += -D_DEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# IF REQUIRES_EH=1 is specified then don't disable exceptions
|
||||||
|
ifndef REQUIRES_EH
|
||||||
|
CXX.Flags += -fno-exceptions
|
||||||
|
endif
|
||||||
|
|
||||||
CXX.Flags += $(CXXFLAGS)
|
CXX.Flags += $(CXXFLAGS)
|
||||||
C.Flags += $(CFLAGS)
|
C.Flags += $(CFLAGS)
|
||||||
CPP.BaseFlags += $(CPPFLAGS)
|
CPP.BaseFlags += $(CPPFLAGS)
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
LIBRARYNAME := LLVMAsmParser
|
LIBRARYNAME := LLVMAsmParser
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
REQUIRES_EH := 1
|
|
||||||
EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
|
EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
|
||||||
llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
|
llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user