Skip to content

Commit

Permalink
make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jan 24, 2010
1 parent c0f8a36 commit 43b5f93
Show file tree
Hide file tree
Showing 86 changed files with 7 additions and 90 deletions.
6 changes: 3 additions & 3 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ ifdef REQUIRES_FRAME_POINTER
endif

# If REQUIRES_RTTI=1 is specified then don't disable run-time type id.
ifeq ($(REQUIRES_RTTI), 1)
CXX.Flags := $(filter-out -fno-rtti,$(CXX.Flags))
CXXFLAGS := $(filter-out -fno-rtti,$(CXXFLAGS))
ifneq ($(REQUIRES_RTTI), 1)
CXX.Flags += -fno-rtti
CXXFLAGS += -fno-rtti
endif

ifdef ENABLE_COVERAGE
Expand Down
1 change: 0 additions & 1 deletion lib/Analysis/IPA/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMipa
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/Analysis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ LEVEL = ../..
LIBRARYNAME = LLVMAnalysis
DIRS = IPA
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/Archive/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

LEVEL = ../..
LIBRARYNAME = LLVMArchive
CXXFLAGS = -fno-rtti

# We only want an archive so only those modules actually used by a tool are
# included.
Expand Down
1 change: 0 additions & 1 deletion lib/AsmParser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
LEVEL = ../..
LIBRARYNAME := LLVMAsmParser
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common
1 change: 0 additions & 1 deletion lib/Bitcode/Reader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMBitReader
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/Bitcode/Writer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMBitWriter
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/CodeGen/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@

LEVEL = ../../..
LIBRARYNAME = LLVMAsmPrinter
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common
1 change: 0 additions & 1 deletion lib/CodeGen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ LEVEL = ../..
LIBRARYNAME = LLVMCodeGen
PARALLEL_DIRS = SelectionDAG AsmPrinter
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

Expand Down
1 change: 0 additions & 1 deletion lib/CodeGen/SelectionDAG/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@

LEVEL = ../../..
LIBRARYNAME = LLVMSelectionDAG
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common
1 change: 0 additions & 1 deletion lib/ExecutionEngine/Interpreter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@

LEVEL = ../../..
LIBRARYNAME = LLVMInterpreter
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common
1 change: 0 additions & 1 deletion lib/ExecutionEngine/JIT/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

LEVEL = ../../..
LIBRARYNAME = LLVMJIT
CXXFLAGS = -fno-rtti

# Get the $(ARCH) setting
include $(LEVEL)/Makefile.config
Expand Down
1 change: 0 additions & 1 deletion lib/ExecutionEngine/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
LEVEL = ../..
LIBRARYNAME = LLVMExecutionEngine
PARALLEL_DIRS = Interpreter JIT
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common
1 change: 0 additions & 1 deletion lib/Linker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../..
LIBRARYNAME = LLVMLinker
BUILD_ARCHIVE := 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/MC/MCParser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMMCParser
BUILD_ARCHIVE := 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/MC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ LEVEL = ../..
LIBRARYNAME = LLVMMC
BUILD_ARCHIVE := 1
PARALLEL_DIRS := MCParser
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/Target/ARM/AsmParser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMARMAsmParser
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' ARM target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/ARM/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMARMAsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' arm target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/ARM/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMARMCodeGen
TARGET = ARM
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = ARMGenRegisterInfo.h.inc ARMGenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/ARM/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMARMInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Alpha/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMAlphaAsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' alpha target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Alpha/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMAlphaCodeGen
TARGET = Alpha
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = AlphaGenRegisterInfo.h.inc AlphaGenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Alpha/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMAlphaInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Blackfin/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMBlackfinAsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' Blackfin target directory to grab private
# headers
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Blackfin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMBlackfinCodeGen
TARGET = Blackfin
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = BlackfinGenRegisterInfo.h.inc BlackfinGenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Blackfin/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMBlackfinInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
2 changes: 0 additions & 2 deletions lib/Target/CBackend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

LEVEL = ../../..
LIBRARYNAME = LLVMCBackend
CXXFLAGS = -fno-rtti

DIRS = TargetInfo

include $(LEVEL)/Makefile.common
Expand Down
1 change: 0 additions & 1 deletion lib/Target/CBackend/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMCBackendInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/CellSPU/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

LEVEL = ../../../..
LIBRARYNAME = LLVMCellSPUAsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' CellSPU target directory to grab
# private headers
Expand Down
2 changes: 0 additions & 2 deletions lib/Target/CellSPU/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMCellSPUCodeGen
TARGET = SPU
CXXFLAGS = -fno-rtti

BUILT_SOURCES = SPUGenInstrNames.inc SPUGenRegisterNames.inc \
SPUGenAsmWriter.inc SPUGenCodeEmitter.inc \
SPUGenRegisterInfo.h.inc SPUGenRegisterInfo.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/CellSPU/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMCellSPUInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
2 changes: 0 additions & 2 deletions lib/Target/CppBackend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

LEVEL = ../../..
LIBRARYNAME = LLVMCppBackend
CXXFLAGS = -fno-rtti

DIRS = TargetInfo

include $(LEVEL)/Makefile.common
Expand Down
1 change: 0 additions & 1 deletion lib/Target/CppBackend/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMCppBackendInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
2 changes: 0 additions & 2 deletions lib/Target/MSIL/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

LEVEL = ../../..
LIBRARYNAME = LLVMMSIL
CXXFLAGS = -fno-rtti

DIRS = TargetInfo

include $(LEVEL)/Makefile.common
Expand Down
1 change: 0 additions & 1 deletion lib/Target/MSIL/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMMSILInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/MSP430/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMMSP430AsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' MSP430 target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/MSP430/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMMSP430CodeGen
TARGET = MSP430
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = MSP430GenRegisterInfo.h.inc MSP430GenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/MSP430/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMMSP430Info
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../..
LIBRARYNAME = LLVMTarget
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

# We include this early so we can access the value of TARGETS_TO_BUILD as the
# value for PARALLEL_DIRS which must be set before Makefile.rules is included
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Mips/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

LEVEL = ../../../..
LIBRARYNAME = LLVMMipsAsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' Mips target directory to grab
# private headers
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Mips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMMipsCodeGen
TARGET = Mips
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = MipsGenRegisterInfo.h.inc MipsGenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/Mips/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMMipsInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/PIC16/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMPIC16AsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' pic16 target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/PIC16/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMPIC16CodeGen
TARGET = PIC16
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = PIC16GenRegisterInfo.h.inc PIC16GenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/PIC16/PIC16Passes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ LEVEL = ../../../..
TARGET = PIC16
LIBRARYNAME = LLVMpic16passes
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti

include $(LEVEL)/Makefile.common

1 change: 0 additions & 1 deletion lib/Target/PIC16/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMPIC16Info
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/PowerPC/AsmPrinter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMPowerPCAsmPrinter
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' PowerPC target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
1 change: 0 additions & 1 deletion lib/Target/PowerPC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
LEVEL = ../../..
LIBRARYNAME = LLVMPowerPCCodeGen
TARGET = PPC
CXXFLAGS = -fno-rtti

# Make sure that tblgen is run, first thing.
BUILT_SOURCES = PPCGenInstrNames.inc PPCGenRegisterNames.inc \
Expand Down
1 change: 0 additions & 1 deletion lib/Target/PowerPC/TargetInfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMPowerPCInfo
CXXFLAGS = -fno-rtti

# Hack: we need to include 'main' target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
Expand Down
Loading

0 comments on commit 43b5f93

Please sign in to comment.