Stop building RTTI information for *most* llvm libraries. Notable
authorChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 06:49:46 +0000 (06:49 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Jan 2010 06:49:46 +0000 (06:49 +0000)
missing ones are libsupport, libsystem and libvmcore.  libvmcore is
currently blocked on bugpoint, which uses EH.  Once it stops using
EH, we can switch it off.

This #if 0's out 3 unit tests, because gtest requires RTTI information.
Suggestions welcome on how to fix this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8

89 files changed:
include/llvm-c/Core.h
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
lib/VMCore/Makefile
tools/gold/Makefile
tools/llc/Makefile
tools/lli/Makefile
tools/llvm-ar/Makefile
tools/llvm-as/Makefile
tools/llvm-bcanalyzer/Makefile
tools/llvm-config/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/ExecutionEngine/JIT/JITEventListenerTest.cpp
unittests/ExecutionEngine/JIT/JITTest.cpp
unittests/VMCore/PassManagerTest.cpp

index 7824729f311b62ef258f69753f476226fed6b162..d57c250fcb2ea64f6045c4595db1cebf7ed619e2 100644 (file)
@@ -1007,7 +1007,7 @@ namespace llvm {
                                                         \
     template<typename T>                                \
     inline T *unwrap(ref P) {                           \
-      T *Q = dynamic_cast<T*>(unwrap(P));               \
+      T *Q = (T*)unwrap(P);                             \
       assert(Q && "Invalid cast!");                     \
       return Q;                                         \
     }
index adacb16ea205a9894c0b37da1c25674244006cd1..da719bae8dac7be494ad92d427182a6f4211f3f3 100644 (file)
@@ -10,5 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMipa
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
+
 include $(LEVEL)/Makefile.common
 
index 4af6d350a6456b71f154019d6bef61b798a645db..f61b8aa2f9f0fb70201e99960916ddf5e4c262f8 100644 (file)
@@ -11,6 +11,7 @@ LEVEL = ../..
 LIBRARYNAME = LLVMAnalysis
 DIRS = IPA
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index da9780403a08fd1d74ea074e1cd623bf1abe6aaa..1256e1ceadc7d793f4a85f8a0e44105e3934e96e 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL = ../..
 LIBRARYNAME = LLVMArchive
+CXXFLAGS = -fno-rtti
 
 # We only want an archive so only those modules actually used by a tool are
 # included.
index 995bb0e130e2bee6fbe94b259eba3b3890d9250f..7b53a8725983956df13479d9e4fdd41cfd2ce993 100644 (file)
@@ -10,5 +10,6 @@
 LEVEL = ../..
 LIBRARYNAME := LLVMAsmParser
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 59af8d53a73ea7b23431106caf80129c6439fa41..0aae3bf4ccaa76b64a970496b13a046d32d12cdd 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMBitReader
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 7b0bd72159add299227cbc2c172e207f30c5bf75..5f9742e98279d2165602d616a3360582eec0ec93 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMBitWriter
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 8f65d8d3f234aff466713f46c74bd7a8431886be..b0071d0ea3dbe0e5958010c7b9b609b2f43256ee 100644 (file)
@@ -1,4 +1,4 @@
-##===- lib/CodeGen/SelectionDAG/Makefile -------------------*- Makefile -*-===##
+##===- lib/CodeGen/AsmPrinter/Makefile ---------------------*- Makefile -*-===##
 #
 #                     The LLVM Compiler Infrastructure
 #
@@ -6,8 +6,9 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMAsmPrinter
-PARALLEL_DIRS =
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 4ab3e3c0013ebc3f4b56fa9110e32d9c13f311a0..8c0204c697974d7caaa1752c175f20a7207c3593 100644 (file)
@@ -11,6 +11,7 @@ LEVEL = ../..
 LIBRARYNAME = LLVMCodeGen
 PARALLEL_DIRS = SelectionDAG AsmPrinter
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 73f0b5da852d8f370b0d5c7c20bec4e75ccdacc7..4706e685293fa5e06d354f232e76e7a27dd70bcf 100644 (file)
@@ -6,8 +6,9 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMSelectionDAG
-PARALLEL_DIRS =
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 5f937c3ad6f29be8459382ba825fdb20bddce16b..4df38eaf34647613d45679964bed3d303a14cd11 100644 (file)
@@ -6,7 +6,9 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMInterpreter
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index e2c9c61e88faa568f298cd5e241e67f0f3d15809..1c93c0661426a5825cbe0a6f1d943663229c79a0 100644 (file)
@@ -6,8 +6,10 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMJIT
+CXXFLAGS = -fno-rtti
 
 # Get the $(ARCH) setting
 include $(LEVEL)/Makefile.config
index e0e050e89728b0f8645825f4f04228f23eec996e..2387b0e1cc77e1ff7ecfffbc9e764a63fa13b3c9 100644 (file)
@@ -9,5 +9,6 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMExecutionEngine
 PARALLEL_DIRS = Interpreter JIT
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 19e646b7483020ae57f1198d7e8b6ec06d76b2c6..2179fd2028e4622831fb3dc947891787443705a3 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMLinker
 BUILD_ARCHIVE := 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 4477757657c7fd544fa2d39c12c722d414ff979e..e4eb483af9915925cce3dc6e6d4d95d24cc3f317 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMMCParser
 BUILD_ARCHIVE := 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index a661fa6f40804ddcaeba0c1bd6779abed2a410ee..371776f9cfdfcc14a9cf89d3320d2a70af5de0db 100644 (file)
@@ -11,6 +11,7 @@ LEVEL = ../..
 LIBRARYNAME = LLVMMC
 BUILD_ARCHIVE := 1
 PARALLEL_DIRS := MCParser
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 97e56126d8eb59f7372c5864338dd478f682d19e..4fb8564dd6424df29f003f9c5f92781ebe1b8a57 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 208beccce8a313a43efaa30b4cfd005de8f504a8..93b8fc92185136a929b164c7c734f60009fbfe93 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 a8dd38cb362e2d001ef4efe28a38bb9e7e5dcf3d..b766a868569e9ab5d1a9272b25e87bd40f45596d 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMARMCodeGen
 TARGET = ARM
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = ARMGenRegisterInfo.h.inc ARMGenRegisterNames.inc \
index 6292ab14b3469140ead8eb4b3c1804e4f6987452..589dbe5f89f612ece98278a5ee4e9e7354ef42c8 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 3c64a3c606f394c4a9c6818942a9abc133763744..3f64aac87a1c70c363cb341516a4748923143fc6 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 d2d71097410b21854e8054ceb90eb1a59a181a42..14cbc6c8e9319670303f298b7810337faab430d7 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMAlphaCodeGen
 TARGET = Alpha
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = AlphaGenRegisterInfo.h.inc AlphaGenRegisterNames.inc \
index de01d7f8e8ef318b76860a2fc1de759153abb38c..6f7b8980f7a887edf3937f70233a7f6c363e2f04 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 091d4df0bcb879d93ecae271ba63dbb99dc4c1a3..30e82856f8337aa471fbbdbc60055d02f396b11e 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../../../..
 LIBRARYNAME = LLVMBlackfinAsmPrinter
+CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' Blackfin target directory to grab private
 # headers
index c68760b2ece9cc9c1dd6d625d27a8548b2d1f0e5..4fdaf27b9c8ae9b13380a3099d1a2828938902d2 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMBlackfinCodeGen
 TARGET = Blackfin
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = BlackfinGenRegisterInfo.h.inc BlackfinGenRegisterNames.inc \
index c49cfbe69077644f063951f104a8d585bb1eb9fb..5c770cf36e67d83940cc11e8bf5a71476cf3f69e 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 3b5ef0f34692c6c5cc1e4712a0a04f0aeb0f3c99..f82d27788db3a0dc94220421c4e1f33e949f1b5c 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCBackend
+CXXFLAGS = -fno-rtti
 
 DIRS = TargetInfo
 
index d4d5e15b40bb17ee1a0e9ccaebb258580d515c18..6407904d2500d5c4a80fc697005d6134afce837c 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 69639efca748db46b0a8ed4995043bb3115d41b7..aa0db525b5908d1ee93a4f2e35c61ff6067ba7ce 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMCellSPUAsmPrinter
+CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' CellSPU target directory to grab
 # private headers
index 8415168aea20076596f4f97c64ba1a542c9521a7..9f3ff745b211d25b2472cf501596bbf8833c2405 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMCellSPUCodeGen
 TARGET = SPU
+CXXFLAGS = -fno-rtti
 
 BUILT_SOURCES = SPUGenInstrNames.inc SPUGenRegisterNames.inc \
                SPUGenAsmWriter.inc SPUGenCodeEmitter.inc \
index 9cb6827b43233e0d19b459a3c892e726c92f19ee..30ca5cf3d2787050c8d5bf4a5c74d0fde392eaea 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 dc9cf48c8b1e80f352a6d8e5a1914e3c8803b9e5..52f2aadfa3c4646c9bc021168c955c600ff43411 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMCppBackend
+CXXFLAGS = -fno-rtti
 
 DIRS = TargetInfo
 
index 6e682838daec8aa60c32f502405e84ae4e40d6ad..7e44aab5092780e68f1a5931d3177bdc8a710430 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 8057cc748039089a8cef93ef738c0f1a69eb12cd..9fecba5822aec92cbca5e5078d224aed4baca08f 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL = ../../..
 LIBRARYNAME = LLVMMSIL
+CXXFLAGS = -fno-rtti
 
 DIRS = TargetInfo
 
index 30b0950db0f757285160c9f6f392c875f6587813..710f5a1226df858921377d013032f97a947b84be 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 4f340c673358ed7e7fbf56364264ccaef8798167..c8a44a1e4b5bad4eab35b26da6b1de2f261a4741 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 4b18bc9ab428d756218ca8f745bfd173917ed2f6..11195a4384817796a6ac59f4ca3484e6414e5546 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 # 
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMMSP430CodeGen
 TARGET = MSP430
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = MSP430GenRegisterInfo.h.inc MSP430GenRegisterNames.inc \
index abb08f2548ee1a77cfdf0238eececf88370d0e89..d17fa7bd30fbfb18f97b21a488c07c1d58a4789e 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 50a360f1f868f520bdafad0ccad739568dfdb67f..281d58b5f9004e54296196e1fd60996cf0eda0cd 100644 (file)
@@ -10,6 +10,7 @@
 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 a2fecf44e8e122b576ec49bfaa537e8e110a156f..aed801e5668bd64411a034d8e827c69efe0b5908 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL = ../../../..
 LIBRARYNAME = LLVMMipsAsmPrinter
+CXXFLAGS = -fno-rtti
 
 # Hack: we need to include 'main' Mips target directory to grab
 # private headers
index 078034532d5047e028b84b796c08d1b9c7e8f0b7..4e4d87439ab2ba5d19d7632463c0deb60d8e090e 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMMipsCodeGen
 TARGET = Mips
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = MipsGenRegisterInfo.h.inc MipsGenRegisterNames.inc \
index 32f4e1695b1d77dd10337cd4355a6655d94cd1ff..f27d49e51302847bf5fdf6d167292ac17b940901 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 f4db57e6071634a597d8cdd4b5162f57d23d3e7c..27c4045cafb127fad16642b39a2dfa16b8c1102a 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 4382eba7c240a1ac09027d2ad6547f9eda3acf66..a1dbde58b74534272c40517a70ed73b3d8df5e76 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 # 
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMPIC16CodeGen
 TARGET = PIC16
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = PIC16GenRegisterInfo.h.inc PIC16GenRegisterNames.inc \
index 9684b8d2cae402d70081111f2e533b10d0151149..fb45d717e6262c3d76256c16ec9ea14eed75ca03 100644 (file)
@@ -10,6 +10,7 @@ LEVEL = ../../../..
 TARGET = PIC16
 LIBRARYNAME = LLVMpic16passes
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 76609f66d6521b69a699f32d3d743e43cc6294f4..9004be8387ebd0d6c31f4d664a87e0c87174a02c 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 269ef920443361133ca1cc056301f946af83e730..4378151ccf755c33b74b75d96610329e12f20f84 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 4015d4aa190d41f8f721f550bc13f429affffc97..cd30011c2e6916bac81e1595a006c86bc290c43d 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMPowerPCCodeGen
 TARGET = PPC
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = PPCGenInstrNames.inc PPCGenRegisterNames.inc \
index a101aa4a44958adb8afa2d0bcc64ed5424a88195..16d01672284d2e45c4c7bfbe5851a89687506efb 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 a856828ce401428b29670a297b8981c01e5c394e..404fad1a916a596cab2e0cf587c511b6f6ba0071 100644 (file)
@@ -8,6 +8,8 @@
 ##===----------------------------------------------------------------------===##
 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 6714b4dadb29e691815c371ebfec6405f3145e27..d3e2a89db01a1c754202e70a2c3c2125b4851a9f 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMSparcCodeGen
 TARGET = Sparc
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = SparcGenRegisterInfo.h.inc SparcGenRegisterNames.inc \
index 641ed87160c753fd63d7ffde3c011dc3b9a49cf4..0827fdb8a92d902f45fbe24fff0b456fd4d7080a 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 9a350dfe62e7dd83c74f7eb15c54942b87456a62..36cd6f86cb45c27d997400c34f8ba508e2c6d275 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 f1097ebcf3b7ac19dd2322c1c8a0f55dfa1c3ba7..6d0cbbd0be3b6e26ce6844c3a95fe58233a94266 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMSystemZCodeGen
 TARGET = SystemZ
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = SystemZGenRegisterInfo.h.inc SystemZGenRegisterNames.inc \
index 0be80eb4e6ad32869b72c3c17df15bf006667735..9f36b2cd62d1291bcdde434322247aca1ee361e5 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 25fb0a2836dba432039e1b663472169d7de171e4..288b985daa28daf6ac2edd68c2d4be7351ccc3bc 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 2368761ac9f4599e9e698572e8acd7a0135bbe23..326a22f0231bff5ee29bf2d279ad6a00e719d9ee 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 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 b2896477df4857fc05e0cbdc011354c9555c710f..6c26853ce024054dd35af2725e7c222a21fe11c0 100644 (file)
@@ -9,6 +9,7 @@
 
 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 6098dbf5ddaf5545694c166af1e4cf43dfcbfd3b..5e625dcf21cde0b952a1e8c6d2406aa530eae266 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMX86CodeGen
 TARGET = X86
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
index 6677d4bdfde1dfa7af8383a157d72f2da61fde94..211607f85d3662f7c07ecad5732ad4f578eab334 100644 (file)
@@ -6,8 +6,10 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 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 82dc1df95d3be1c5199bb4b5b42082969aa5c771..f0e883e6f5414226bfbb1d99da41e059dfea9b0d 100644 (file)
@@ -9,6 +9,7 @@
 
 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 bd3b52a7ac10f32164adf568874e7eb69c7b2ecd..3bb127f533c9105c36c9a42b7900d1bf68e85e83 100644 (file)
@@ -6,9 +6,11 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 LEVEL = ../../..
 LIBRARYNAME = LLVMXCoreCodeGen
 TARGET = XCore
+CXXFLAGS = -fno-rtti
 
 # Make sure that tblgen is run, first thing.
 BUILT_SOURCES = XCoreGenRegisterInfo.h.inc XCoreGenRegisterNames.inc \
index 07473d223f6bc191979bef79382ba529556dd29f..83bba13aab74964f551bc5f530421520cb6bf440 100644 (file)
@@ -6,8 +6,10 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
+
 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 c5e75d43af65ec7ac6913bc8b4c73530a8c67a75..46f80989c371d725e193415598ac3807c25097e5 100644 (file)
@@ -11,6 +11,7 @@ LEVEL = ../../..
 LIBRARYNAME = LLVMHello
 LOADABLE_MODULE = 1
 USEDLIBS =
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 5c42374139aaa2e46daf55e04ca355712c2ee70d..fd018c4bd037ec0adc823f736ff624bcf05df6f6 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMipo
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 0c488e78b6d92ba1d93b86efeb0fa196d3fa3bcf..f9de42afb0c0d1d3f1cb722283a1b038f99ee806 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMInstCombine
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index 6cbc7a9cd88af95e66779c4728237332168c29ec..12388968f1c8b58e358c2c151835a5a2f7062871 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMInstrumentation
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index cc42fd00ac7da94a4dcce9ae5219fe9943a61be2..e18f30f143eaab6d0d1d3eef7081ba09effffc4c 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMScalarOpts
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index d1e9336d67f029be8f17b8c5cc9828d784588c10..b9761df1ee06a2dfa4baf7dcd35da430ed9b265e 100644 (file)
@@ -10,6 +10,7 @@
 LEVEL = ../../..
 LIBRARYNAME = LLVMTransformUtils
 BUILD_ARCHIVE = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
 
index e9d3dc879665ef4208abdc294a59c94625097408..ecadaeeb27652506820386c9918ca1c9fd794eb8 100644 (file)
@@ -9,6 +9,7 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMCore
 BUILD_ARCHIVE = 1
+#CXXFLAGS = -fno-rtti
 
 BUILT_SOURCES = $(PROJ_OBJ_ROOT)/include/llvm/Intrinsics.gen
 
index 7bac4ec62deac4e575f2ccdcd62da70521fb4d20..3f77229b33b331780cad1b0aa4e76def3ce38613 100644 (file)
@@ -19,6 +19,7 @@ LINK_LIBS_IN_SHARED=1
 SHARED_LIBRARY = 1
 BUILD_ARCHIVE = 0
 LOADABLE_MODULE = 1
+CXXFLAGS = -fno-rtti
 
 LINK_COMPONENTS := support system
 LIBS += -llto
index 7319aada489e17e0c2dbeb46fc05e9f50e9c5a86..6b5b125d8abcd74db6d583269fc40d482c22e5eb 100644 (file)
@@ -9,6 +9,7 @@
 
 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 8f6eeed486bb7c3b39904b0575ffa44293446c15..2341bed3ddaeb99417269160a5b55dd660119147 100644 (file)
@@ -9,6 +9,7 @@
 
 LEVEL    := ../..
 TOOLNAME := lli
+CXXFLAGS = -fno-rtti
 LINK_COMPONENTS := jit interpreter nativecodegen bitreader selectiondag
 
 # Enable JIT support
index e4fe4e8ca39a788995418cab22ec82f4c43f6183..3db7964ad1ddc8411625952a091c204b8b7c411f 100644 (file)
@@ -11,6 +11,7 @@ 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 ae449c479a41ce57092bf7d59f18714a7b54212d..d6fbd710fa35f529250114f4adfabf49a433195b 100644 (file)
@@ -10,7 +10,7 @@
 LEVEL = ../..
 TOOLNAME = llvm-as
 LINK_COMPONENTS := asmparser bitwriter
-REQUIRES_EH := 1
+CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index 251f7586064b9d67148721f57d4b476ef5b9666b..488387d5da24b204ec445a9609f903af6851740f 100644 (file)
@@ -10,7 +10,6 @@ LEVEL = ../..
 
 TOOLNAME = llvm-bcanalyzer
 LINK_COMPONENTS := bitreader
-REQUIRES_EH := 1
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index 6eedca07b500fca48ffd972d9e131cab7a104e4e..e5bdc04063f92770bdb0dd8c39fb40dedcd6d5a8 100644 (file)
@@ -10,7 +10,6 @@
 LEVEL = ../..
 
 EXTRA_DIST = LibDeps.txt FinalLibDeps.txt llvm-config.in.in find-cycles.pl
-REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
 
index dfd5e34981239f0171d6acd8c9e594fb0b60a22a..96f3cbb5687cfa926b23406040d60713f1ba0fc8 100644 (file)
@@ -10,7 +10,7 @@ LEVEL = ../..
 
 TOOLNAME = llvm-dis
 LINK_COMPONENTS := bitreader
-REQUIRES_EH := 1
+CXXFLAGS = -fno-rtti
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
index 5672aa3299a2426f37ccf142f48fc935a50c9363..dee057270fee6c6882db3ff0dce3bb76555936e1 100644 (file)
@@ -11,6 +11,7 @@ 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 1ef9bf1174508647157dd82cfcfedb50aa09f83e..1da19665a36eb7934abb22bd06a6f4ffd8cc399e 100644 (file)
@@ -11,5 +11,6 @@ LEVEL = ../..
 
 TOOLNAME = llvm-ld
 LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 26370187c55f9954866be05bbb88863141eb7571..de592aae6a144564dfd9a7aea0223196e341dbdd 100644 (file)
@@ -10,6 +10,7 @@ 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 5b0fe3f54462291c15ce3f1e91a3224d526a8e79..5ce1a8f7a82f94d52286d94e6d9cb5fb96aba463 100644 (file)
@@ -13,6 +13,7 @@ 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 ecf5f8c3dcfa3bff5ee2d31fc5d530c4ee6c8f11..bdefaa6248e7a84c0e569d6c5bd2491cb1eee55b 100644 (file)
@@ -13,5 +13,6 @@ LINK_COMPONENTS = archive bitreader
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 86eb54d51bf47eb136cc23ead748aec42d8b9218..b1fd3304f1af366373a662ebacf81c4d272dafe7 100644 (file)
@@ -13,5 +13,6 @@ LINK_COMPONENTS = bitreader analysis
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS = 1
+CXXFLAGS = -fno-rtti
 
 include $(LEVEL)/Makefile.common
index 3120aa52c953afb7e778081652fa7acc7bab8f18..f0bc67c50c85c706a478763b5496de31009baea5 100644 (file)
@@ -17,6 +17,7 @@ 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 726cad87123f24572f5b058c295925818fcab550..2f184a679b37e55e84fa7259da5694b2f3fff3de 100644 (file)
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 TOOLNAME = opt
+CXXFLAGS = -fno-rtti
 
 LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
 
index dda86fbe399f2ce559c4889d193330f594e195cf..a58a0872a4ec9a1a4b373937bc64f88c44564a2b 100644 (file)
@@ -23,6 +23,9 @@
 
 using namespace llvm;
 
+int dummy;
+
+#if 0
 namespace {
 
 struct FunctionEmittedEvent {
@@ -235,3 +238,4 @@ testing::Environment* const jit_env =
   testing::AddGlobalTestEnvironment(new JITEnvironment);
 
 }  // anonymous namespace
+#endif
index 7f75afada1aa3dcee3645174a545a412cc1df932..bed2d22f1cfa01e3146eabbe88a1cb36ba38ec5d 100644 (file)
@@ -58,6 +58,7 @@ std::string DumpFunction(const Function *F) {
   return Result;
 }
 
+#if 0
 class RecordingJITMemoryManager : public JITMemoryManager {
   const OwningPtr<JITMemoryManager> Base;
 public:
@@ -178,6 +179,7 @@ public:
     return Base->endExceptionTable(F, TableStart, TableEnd, FrameRegister);
   }
 };
+#endif
 
 bool LoadAssemblyInto(Module *M, const char *assembly) {
   SMDiagnostic Error;
@@ -195,11 +197,15 @@ class JITTest : public testing::Test {
   virtual void SetUp() {
     M = new Module("<main>", Context);
     MP = new ExistingModuleProvider(M);
+#if 0
     RJMM = new RecordingJITMemoryManager;
     RJMM->setPoisonMemory(true);
+#endif
     std::string Error;
     TheJIT.reset(EngineBuilder(MP).setEngineKind(EngineKind::JIT)
+#if 0
                  .setJITMemoryManager(RJMM)
+#endif
                  .setErrorStr(&Error).create());
     ASSERT_TRUE(TheJIT.get() != NULL) << Error;
   }
@@ -211,7 +217,9 @@ class JITTest : public testing::Test {
   LLVMContext Context;
   Module *M;  // Owned by MP.
   ModuleProvider *MP;  // Owned by ExecutionEngine.
+#if 0
   RecordingJITMemoryManager *RJMM;
+#endif
   OwningPtr<ExecutionEngine> TheJIT;
 };
 
@@ -430,6 +438,7 @@ TEST_F(JITTest, ModuleDeletion) {
   TheJIT->getPointerToFunction(func);
   TheJIT->deleteModuleProvider(MP);
 
+#if 0
   SmallPtrSet<const void*, 2> FunctionsDeallocated;
   for (unsigned i = 0, e = RJMM->deallocateFunctionBodyCalls.size();
        i != e; ++i) {
@@ -463,6 +472,7 @@ TEST_F(JITTest, ModuleDeletion) {
   }
   EXPECT_EQ(RJMM->startExceptionTableCalls.size(),
             NumTablesDeallocated);
+#endif
 }
 
 // ARM and PPC still emit stubs for calls since the target may be too far away
@@ -497,14 +507,18 @@ TEST_F(JITTest, NoStubs) {
 
   // We should now allocate no more stubs, we have the code to foo
   // and the existing stub for bar.
+#if 0
   int stubsBefore = RJMM->stubsAllocated;
+#endif
   Function *func = M->getFunction("main");
   TheJIT->getPointerToFunction(func);
 
   Function *bar = M->getFunction("bar");
   TheJIT->getPointerToFunction(bar);
 
+#if 0
   ASSERT_EQ(stubsBefore, RJMM->stubsAllocated);
+#endif
 }
 #endif  // !ARM && !PPC
 
index cb8f9ebb939beb4dafaf373d25226f9a9d1313f2..092ce3d928b2390e210d03d39e0b61f0893796d7 100644 (file)
 #include "llvm/Assembly/PrintModulePass.h"
 #include "gtest/gtest.h"
 
+int dummy;
+
+#if 0
+
 namespace llvm {
   namespace {
     // ND = no deps
@@ -525,3 +529,4 @@ namespace llvm {
 
   }
 }
+#endif