make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.
authorChris Lattner <sabre@nondot.org>
Sun, 24 Jan 2010 20:43:08 +0000 (20:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Jan 2010 20:43:08 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8

86 files changed:
Makefile.rules
lib/Analysis/IPA/Makefile
lib/Analysis/Makefile
lib/Archive/Makefile
lib/AsmParser/Makefile
lib/Bitcode/Reader/Makefile
lib/Bitcode/Writer/Makefile
lib/CodeGen/AsmPrinter/Makefile
lib/CodeGen/Makefile
lib/CodeGen/SelectionDAG/Makefile
lib/ExecutionEngine/Interpreter/Makefile
lib/ExecutionEngine/JIT/Makefile
lib/ExecutionEngine/Makefile
lib/Linker/Makefile
lib/MC/MCParser/Makefile
lib/MC/Makefile
lib/Target/ARM/AsmParser/Makefile
lib/Target/ARM/AsmPrinter/Makefile
lib/Target/ARM/Makefile
lib/Target/ARM/TargetInfo/Makefile
lib/Target/Alpha/AsmPrinter/Makefile
lib/Target/Alpha/Makefile
lib/Target/Alpha/TargetInfo/Makefile
lib/Target/Blackfin/AsmPrinter/Makefile
lib/Target/Blackfin/Makefile
lib/Target/Blackfin/TargetInfo/Makefile
lib/Target/CBackend/Makefile
lib/Target/CBackend/TargetInfo/Makefile
lib/Target/CellSPU/AsmPrinter/Makefile
lib/Target/CellSPU/Makefile
lib/Target/CellSPU/TargetInfo/Makefile
lib/Target/CppBackend/Makefile
lib/Target/CppBackend/TargetInfo/Makefile
lib/Target/MSIL/Makefile
lib/Target/MSIL/TargetInfo/Makefile
lib/Target/MSP430/AsmPrinter/Makefile
lib/Target/MSP430/Makefile
lib/Target/MSP430/TargetInfo/Makefile
lib/Target/Makefile
lib/Target/Mips/AsmPrinter/Makefile
lib/Target/Mips/Makefile
lib/Target/Mips/TargetInfo/Makefile
lib/Target/PIC16/AsmPrinter/Makefile
lib/Target/PIC16/Makefile
lib/Target/PIC16/PIC16Passes/Makefile
lib/Target/PIC16/TargetInfo/Makefile
lib/Target/PowerPC/AsmPrinter/Makefile
lib/Target/PowerPC/Makefile
lib/Target/PowerPC/TargetInfo/Makefile
lib/Target/Sparc/AsmPrinter/Makefile
lib/Target/Sparc/Makefile
lib/Target/Sparc/TargetInfo/Makefile
lib/Target/SystemZ/AsmPrinter/Makefile
lib/Target/SystemZ/Makefile
lib/Target/SystemZ/TargetInfo/Makefile
lib/Target/X86/AsmParser/Makefile
lib/Target/X86/AsmPrinter/Makefile
lib/Target/X86/Disassembler/Makefile
lib/Target/X86/Makefile
lib/Target/X86/TargetInfo/Makefile
lib/Target/XCore/AsmPrinter/Makefile
lib/Target/XCore/Makefile
lib/Target/XCore/TargetInfo/Makefile
lib/Transforms/Hello/Makefile
lib/Transforms/IPO/Makefile
lib/Transforms/InstCombine/Makefile
lib/Transforms/Instrumentation/Makefile
lib/Transforms/Scalar/Makefile
lib/Transforms/Utils/Makefile
tools/gold/Makefile
tools/llc/Makefile
tools/lli/Makefile
tools/llvm-ar/Makefile
tools/llvm-as/Makefile
tools/llvm-dis/Makefile
tools/llvm-extract/Makefile
tools/llvm-ld/Makefile
tools/llvm-link/Makefile
tools/llvm-mc/Makefile
tools/llvm-nm/Makefile
tools/llvm-prof/Makefile
tools/lto/Makefile
tools/opt/Makefile
unittests/Makefile.unittest
utils/unittest/UnitTestMain/Makefile
utils/unittest/googletest/Makefile

index 6f75d0475eb2071a54d278db4aae5d2cacca65df..79a2e0165af99fbc278f2048fc19083dff5b779a 100644 (file)
@@ -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
index da719bae8dac7be494ad92d427182a6f4211f3f3..b850c9ff7f4444825661b3e368707c3d51c40e8d 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMipa
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index f61b8aa2f9f0fb70201e99960916ddf5e4c262f8..4af6d350a6456b71f154019d6bef61b798a645db 100644 (file)
@@ -11,7 +11,6 @@ LEVEL = ../..
 LIBRARYNAME = LLVMAnalysis
 DIRS = IPA
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 1256e1ceadc7d793f4a85f8a0e44105e3934e96e..da9780403a08fd1d74ea074e1cd623bf1abe6aaa 100644 (file)
@@ -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.
index 7b53a8725983956df13479d9e4fdd41cfd2ce993..995bb0e130e2bee6fbe94b259eba3b3890d9250f 100644 (file)
@@ -10,6 +10,5 @@
 LEVEL = ../..
 LIBRARYNAME := LLVMAsmParser
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 0aae3bf4ccaa76b64a970496b13a046d32d12cdd..59af8d53a73ea7b23431106caf80129c6439fa41 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMBitReader
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 5f9742e98279d2165602d616a3360582eec0ec93..7b0bd72159add299227cbc2c172e207f30c5bf75 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMBitWriter
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index b0071d0ea3dbe0e5958010c7b9b609b2f43256ee..60aa6cbcf6f3ea51d7eaccd7bf88e34424443d16 100644 (file)
@@ -9,6 +9,5 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMAsmPrinter
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 8c0204c697974d7caaa1752c175f20a7207c3593..4ab3e3c0013ebc3f4b56fa9110e32d9c13f311a0 100644 (file)
@@ -11,7 +11,6 @@ LEVEL = ../..
 LIBRARYNAME = LLVMCodeGen
 PARALLEL_DIRS = SelectionDAG AsmPrinter
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 4706e685293fa5e06d354f232e76e7a27dd70bcf..ea716fdaabbab7034e1dc387bc1c00afc2047b51 100644 (file)
@@ -9,6 +9,5 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMSelectionDAG
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 4df38eaf34647613d45679964bed3d303a14cd11..5def1365c61a85526d587bc36ed9461f0dbe77ec 100644 (file)
@@ -9,6 +9,5 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMInterpreter
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 1c93c0661426a5825cbe0a6f1d943663229c79a0..aafa3d9d420f046a91f9f4fdc9c61ec8b0bbca42 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMJIT
-CXXFLAGS = -fno-rtti
 
 # Get the $(ARCH) setting
 include $(LEVEL)/Makefile.config
index 2387b0e1cc77e1ff7ecfffbc9e764a63fa13b3c9..e0e050e89728b0f8645825f4f04228f23eec996e 100644 (file)
@@ -9,6 +9,5 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMExecutionEngine
 PARALLEL_DIRS = Interpreter JIT
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 2179fd2028e4622831fb3dc947891787443705a3..19e646b7483020ae57f1198d7e8b6ec06d76b2c6 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMLinker
 BUILD_ARCHIVE := 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index e4eb483af9915925cce3dc6e6d4d95d24cc3f317..4477757657c7fd544fa2d39c12c722d414ff979e 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMMCParser
 BUILD_ARCHIVE := 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 371776f9cfdfcc14a9cf89d3320d2a70af5de0db..a661fa6f40804ddcaeba0c1bd6779abed2a410ee 100644 (file)
@@ -11,7 +11,6 @@ LEVEL = ../..
 LIBRARYNAME = LLVMMC
 BUILD_ARCHIVE := 1
 PARALLEL_DIRS := MCParser
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 4fb8564dd6424df29f003f9c5f92781ebe1b8a57..97e56126d8eb59f7372c5864338dd478f682d19e 100644 (file)
@@ -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)/..
index 93b8fc92185136a929b164c7c734f60009fbfe93..208beccce8a313a43efaa30b4cfd005de8f504a8 100644 (file)
@@ -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)/..
index b766a868569e9ab5d1a9272b25e87bd40f45596d..a8dd38cb362e2d001ef4efe28a38bb9e7e5dcf3d 100644 (file)
@@ -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 \
index 589dbe5f89f612ece98278a5ee4e9e7354ef42c8..6292ab14b3469140ead8eb4b3c1804e4f6987452 100644 (file)
@@ -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)/..
index 3f64aac87a1c70c363cb341516a4748923143fc6..3c64a3c606f394c4a9c6818942a9abc133763744 100644 (file)
@@ -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)/..
index 14cbc6c8e9319670303f298b7810337faab430d7..54d53abea5f13a420f32e129b01c4ba72eff3739 100644 (file)
@@ -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 \
index 6f7b8980f7a887edf3937f70233a7f6c363e2f04..de01d7f8e8ef318b76860a2fc1de759153abb38c 100644 (file)
@@ -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)/..
index 30e82856f8337aa471fbbdbc60055d02f396b11e..091d4df0bcb879d93ecae271ba63dbb99dc4c1a3 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMBlackfinAsmPrinter
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' Blackfin target directory to grab private
 # headers
index 4fdaf27b9c8ae9b13380a3099d1a2828938902d2..339bef9981f44ae533e043794e0069d73c758a92 100644 (file)
@@ -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 \
index 5c770cf36e67d83940cc11e8bf5a71476cf3f69e..c49cfbe69077644f063951f104a8d585bb1eb9fb 100644 (file)
@@ -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)/..
index f82d27788db3a0dc94220421c4e1f33e949f1b5c..621948a9f4ac26e4f5d986cf406f4dc753867cfa 100644 (file)
@@ -9,8 +9,6 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCBackend
-CXXFLAGS = -fno-rtti
-
 DIRS = TargetInfo
 
 include $(LEVEL)/Makefile.common
index 6407904d2500d5c4a80fc697005d6134afce837c..d4d5e15b40bb17ee1a0e9ccaebb258580d515c18 100644 (file)
@@ -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)/..
index aa0db525b5908d1ee93a4f2e35c61ff6067ba7ce..69639efca748db46b0a8ed4995043bb3115d41b7 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMCellSPUAsmPrinter
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' CellSPU target directory to grab
 # private headers
index 9f3ff745b211d25b2472cf501596bbf8833c2405..cbdbd3c3a5baf14e8f8b88f28fed39c08cceb9f2 100644 (file)
@@ -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 \
index 30ca5cf3d2787050c8d5bf4a5c74d0fde392eaea..9cb6827b43233e0d19b459a3c892e726c92f19ee 100644 (file)
@@ -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)/..
index 52f2aadfa3c4646c9bc021168c955c600ff43411..d75f4e87226547eece723d47f470b9e0ed4c4ce9 100644 (file)
@@ -9,8 +9,6 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCppBackend
-CXXFLAGS = -fno-rtti
-
 DIRS = TargetInfo
 
 include $(LEVEL)/Makefile.common
index 7e44aab5092780e68f1a5931d3177bdc8a710430..6e682838daec8aa60c32f502405e84ae4e40d6ad 100644 (file)
@@ -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)/..
index 9fecba5822aec92cbca5e5078d224aed4baca08f..70eadb32e36068fee99d0fdb09ef25fffa6eaf95 100644 (file)
@@ -9,8 +9,6 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMMSIL
-CXXFLAGS = -fno-rtti
-
 DIRS = TargetInfo
 
 include $(LEVEL)/Makefile.common
index 710f5a1226df858921377d013032f97a947b84be..30b0950db0f757285160c9f6f392c875f6587813 100644 (file)
@@ -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)/..
index c8a44a1e4b5bad4eab35b26da6b1de2f261a4741..4f340c673358ed7e7fbf56364264ccaef8798167 100644 (file)
@@ -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)/..
index 11195a4384817796a6ac59f4ca3484e6414e5546..b1f33d6d0c11f705fe23f659e0670750d6443024 100644 (file)
@@ -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 \
index d17fa7bd30fbfb18f97b21a488c07c1d58a4789e..abb08f2548ee1a77cfdf0238eececf88370d0e89 100644 (file)
@@ -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)/..
index 281d58b5f9004e54296196e1fd60996cf0eda0cd..50a360f1f868f520bdafad0ccad739568dfdb67f 100644 (file)
@@ -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
index aed801e5668bd64411a034d8e827c69efe0b5908..a2fecf44e8e122b576ec49bfaa537e8e110a156f 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMMipsAsmPrinter
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' Mips target directory to grab
 # private headers
index 4e4d87439ab2ba5d19d7632463c0deb60d8e090e..2ed8d77b85b220fa683a0777c7de4cb8823724a8 100644 (file)
@@ -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 \
index f27d49e51302847bf5fdf6d167292ac17b940901..32f4e1695b1d77dd10337cd4355a6655d94cd1ff 100644 (file)
@@ -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)/..
index 27c4045cafb127fad16642b39a2dfa16b8c1102a..f4db57e6071634a597d8cdd4b5162f57d23d3e7c 100644 (file)
@@ -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)/..
index a1dbde58b74534272c40517a70ed73b3d8df5e76..9e784d1d72624d539e8a7adb6eba83bb8c12ad82 100644 (file)
@@ -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 \
index fb45d717e6262c3d76256c16ec9ea14eed75ca03..9684b8d2cae402d70081111f2e533b10d0151149 100644 (file)
@@ -10,7 +10,6 @@ LEVEL = ../../../..
 TARGET = PIC16
 LIBRARYNAME = LLVMpic16passes
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 9004be8387ebd0d6c31f4d664a87e0c87174a02c..76609f66d6521b69a699f32d3d743e43cc6294f4 100644 (file)
@@ -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)/..
index 4378151ccf755c33b74b75d96610329e12f20f84..269ef920443361133ca1cc056301f946af83e730 100644 (file)
@@ -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)/..
index cd30011c2e6916bac81e1595a006c86bc290c43d..1265f1d36910bc563d996d122cf48a8b45f45c58 100644 (file)
@@ -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 \
index 16d01672284d2e45c4c7bfbe5851a89687506efb..a101aa4a44958adb8afa2d0bcc64ed5424a88195 100644 (file)
@@ -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)/..
index 404fad1a916a596cab2e0cf587c511b6f6ba0071..a856828ce401428b29670a297b8981c01e5c394e 100644 (file)
@@ -8,8 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMSparcAsmPrinter
-CXXFLAGS = -fno-rtti
-
 
 # Hack: we need to include 'main' Sparc target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index d3e2a89db01a1c754202e70a2c3c2125b4851a9f..e4078487e167b58927bcb89ebfbdcb49366eeb2f 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMSparcCodeGen
 TARGET = Sparc
-CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = SparcGenRegisterInfo.h.inc SparcGenRegisterNames.inc \
index 0827fdb8a92d902f45fbe24fff0b456fd4d7080a..641ed87160c753fd63d7ffde3c011dc3b9a49cf4 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMSparcInfo
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 36cd6f86cb45c27d997400c34f8ba508e2c6d275..9a350dfe62e7dd83c74f7eb15c54942b87456a62 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMSystemZAsmPrinter
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' SystemZ target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 6d0cbbd0be3b6e26ce6844c3a95fe58233a94266..5b44090f3f12f8b1515875e56d4693fb9d80c3f9 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMSystemZCodeGen
 TARGET = SystemZ
-CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = SystemZGenRegisterInfo.h.inc SystemZGenRegisterNames.inc \
index 9f36b2cd62d1291bcdde434322247aca1ee361e5..0be80eb4e6ad32869b72c3c17df15bf006667735 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMSystemZInfo
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 288b985daa28daf6ac2edd68c2d4be7351ccc3bc..25fb0a2836dba432039e1b663472169d7de171e4 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMX86AsmParser
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' x86 target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 326a22f0231bff5ee29bf2d279ad6a00e719d9ee..2368761ac9f4599e9e698572e8acd7a0135bbe23 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMX86AsmPrinter
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' x86 target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 6c26853ce024054dd35af2725e7c222a21fe11c0..b2896477df4857fc05e0cbdc011354c9555c710f 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMX86Disassembler
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' x86 target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 5e625dcf21cde0b952a1e8c6d2406aa530eae266..895868b2113e928a63580bfda37db71db4e0f617 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMX86CodeGen
 TARGET = X86
-CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
index 211607f85d3662f7c07ecad5732ad4f578eab334..9858e6a099a227f02111b25d02f61e3f652fedf8 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMX86Info
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index f0e883e6f5414226bfbb1d99da41e059dfea9b0d..82dc1df95d3be1c5199bb4b5b42082969aa5c771 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMXCoreAsmPrinter
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' XCore target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 3bb127f533c9105c36c9a42b7900d1bf68e85e83..1b709745041a1e092353509245a64c93ef1d16c7 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMXCoreCodeGen
 TARGET = XCore
-CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = XCoreGenRegisterInfo.h.inc XCoreGenRegisterNames.inc \
index 83bba13aab74964f551bc5f530421520cb6bf440..f8a4095174970c58a3246c9abf4c884cb535cc48 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMXCoreInfo
-CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' target directory to grab private headers
 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
index 46f80989c371d725e193415598ac3807c25097e5..c5e75d43af65ec7ac6913bc8b4c73530a8c67a75 100644 (file)
@@ -11,7 +11,6 @@ LEVEL = ../../..
 LIBRARYNAME = LLVMHello
 LOADABLE_MODULE = 1
 USEDLIBS =
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index fd018c4bd037ec0adc823f736ff624bcf05df6f6..5c42374139aaa2e46daf55e04ca355712c2ee70d 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMipo
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index f9de42afb0c0d1d3f1cb722283a1b038f99ee806..0c488e78b6d92ba1d93b86efeb0fa196d3fa3bcf 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMInstCombine
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 12388968f1c8b58e358c2c151835a5a2f7062871..6cbc7a9cd88af95e66779c4728237332168c29ec 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMInstrumentation
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index e18f30f143eaab6d0d1d3eef7081ba09effffc4c..cc42fd00ac7da94a4dcce9ae5219fe9943a61be2 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMScalarOpts
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index b9761df1ee06a2dfa4baf7dcd35da430ed9b265e..d1e9336d67f029be8f17b8c5cc9828d784588c10 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMTransformUtils
 BUILD_ARCHIVE = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 3f77229b33b331780cad1b0aa4e76def3ce38613..7bac4ec62deac4e575f2ccdcd62da70521fb4d20 100644 (file)
@@ -19,7 +19,6 @@ LINK_LIBS_IN_SHARED=1
 SHARED_LIBRARY = 1
 BUILD_ARCHIVE = 0
 LOADABLE_MODULE = 1
-CXXFLAGS = -fno-rtti
 
 LINK_COMPONENTS := support system
 LIBS += -llto
index 6b5b125d8abcd74db6d583269fc40d482c22e5eb..7319aada489e17e0c2dbeb46fc05e9f50e9c5a86 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL = ../..
 TOOLNAME = llc
-CXXFLAGS = -fno-rtti
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 
index 2341bed3ddaeb99417269160a5b55dd660119147..8f6eeed486bb7c3b39904b0575ffa44293446c15 100644 (file)
@@ -9,7 +9,6 @@
 
 LEVEL    := ../..
 TOOLNAME := lli
-CXXFLAGS = -fno-rtti
 LINK_COMPONENTS := jit interpreter nativecodegen bitreader selectiondag
 
 # Enable JIT support
index 3db7964ad1ddc8411625952a091c204b8b7c411f..e4fe4e8ca39a788995418cab22ec82f4c43f6183 100644 (file)
@@ -11,7 +11,6 @@ LEVEL = ../..
 TOOLNAME = llvm-ar
 LINK_COMPONENTS = archive
 REQUIRES_EH := 1
-#CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index d6fbd710fa35f529250114f4adfabf49a433195b..e1e5853a7b6a912dc34b5b313e34afe0c7c1bbd9 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../..
 TOOLNAME = llvm-as
 LINK_COMPONENTS := asmparser bitwriter
-CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index 96f3cbb5687cfa926b23406040d60713f1ba0fc8..22c9ecc300ecc2b0d562e4b8707f72b10424fef2 100644 (file)
@@ -10,7 +10,6 @@ LEVEL = ../..
 
 TOOLNAME = llvm-dis
 LINK_COMPONENTS := bitreader
-CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index dee057270fee6c6882db3ff0dce3bb76555936e1..5672aa3299a2426f37ccf142f48fc935a50c9363 100644 (file)
@@ -11,7 +11,6 @@ LEVEL = ../..
 
 TOOLNAME = llvm-extract
 LINK_COMPONENTS := ipo bitreader bitwriter asmparser
-CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index 1da19665a36eb7934abb22bd06a6f4ffd8cc399e..1ef9bf1174508647157dd82cfcfedb50aa09f83e 100644 (file)
@@ -11,6 +11,5 @@ LEVEL = ../..
 
 TOOLNAME = llvm-ld
 LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index de592aae6a144564dfd9a7aea0223196e341dbdd..26370187c55f9954866be05bbb88863141eb7571 100644 (file)
@@ -10,7 +10,6 @@ LEVEL = ../..
 
 TOOLNAME = llvm-link
 LINK_COMPONENTS = linker bitreader bitwriter asmparser
-CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index 5ce1a8f7a82f94d52286d94e6d9cb5fb96aba463..5b0fe3f54462291c15ce3f1e91a3224d526a8e79 100644 (file)
@@ -13,7 +13,6 @@ TOOLNAME = llvm-mc
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
 NO_INSTALL = 1
-CXXFLAGS = -fno-rtti
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 
index bdefaa6248e7a84c0e569d6c5bd2491cb1eee55b..ecf5f8c3dcfa3bff5ee2d31fc5d530c4ee6c8f11 100644 (file)
@@ -13,6 +13,5 @@ LINK_COMPONENTS = archive bitreader
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index b1fd3304f1af366373a662ebacf81c4d272dafe7..86eb54d51bf47eb136cc23ead748aec42d8b9218 100644 (file)
@@ -13,6 +13,5 @@ LINK_COMPONENTS = bitreader analysis
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
-CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index f0bc67c50c85c706a478763b5496de31009baea5..3120aa52c953afb7e778081652fa7acc7bab8f18 100644 (file)
@@ -17,7 +17,6 @@ include $(LEVEL)/Makefile.config
 
 LINK_LIBS_IN_SHARED = 1
 SHARED_LIBRARY = 1
-CXXFLAGS = -fno-rtti
 
 LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter
 
index 2f184a679b37e55e84fa7259da5694b2f3fff3de..726cad87123f24572f5b058c295925818fcab550 100644 (file)
@@ -8,7 +8,6 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 TOOLNAME = opt
-CXXFLAGS = -fno-rtti
 
 LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
 
index e4174355ed7520393cfb881ed0de4d32db3d632e..656f5e2f412a35a724c0f4823f05de6e4d1b558f 100644 (file)
@@ -14,6 +14,8 @@
 # Set up variables for building a unit test.
 ifdef TESTNAME
 
+REQUIRES_RTTI = 1
+
 include $(LEVEL)/Makefile.common
 
 LLVMUnitTestExe = $(BuildMode)/$(TESTNAME)Tests$(EXEEXT)
index 7b49191fd6f0594445b7ff0f4724a500065a6746..328d5e2917fb048a052754a52245db917270603b 100644 (file)
@@ -13,6 +13,7 @@ include $(LEVEL)/Makefile.config
 
 LIBRARYNAME = UnitTestMain
 BUILD_ARCHIVE = 1
+REQUIRES_RTTI = 1
 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)
 
index 2d2c28297665f868abc23bc1b907de22387d55fb..15bbf4e69eaa9493cef772323f15ad8ae039fed2 100644 (file)
@@ -13,6 +13,7 @@ include $(LEVEL)/Makefile.config
 
 LIBRARYNAME = GoogleTest
 BUILD_ARCHIVE = 1
+REQUIRES_RTTI = 1
 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include
 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)