llvm.org GIT mirror llvm / e73a31f
Stop building RTTI information for *most* llvm libraries. Notable 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 Chris Lattner 9 years ago
89 changed file(s) with 126 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
10061006 \
10071007 template \
10081008 inline T *unwrap(ref P) { \
1009 T *Q = dynamic_cast(unwrap(P)); \
1009 T *Q = (T*)unwrap(P); \
10101010 assert(Q && "Invalid cast!"); \
10111011 return Q; \
10121012 }
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMipa
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
13
1214 include $(LEVEL)/Makefile.common
1315
1010 LIBRARYNAME = LLVMAnalysis
1111 DIRS = IPA
1212 BUILD_ARCHIVE = 1
13 CXXFLAGS = -fno-rtti
1314
1415 include $(LEVEL)/Makefile.common
1516
88
99 LEVEL = ../..
1010 LIBRARYNAME = LLVMArchive
11 CXXFLAGS = -fno-rtti
1112
1213 # We only want an archive so only those modules actually used by a tool are
1314 # included.
99 LEVEL = ../..
1010 LIBRARYNAME := LLVMAsmParser
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMBitReader
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMBitWriter
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
None ##===- lib/CodeGen/SelectionDAG/Makefile -------------------*- Makefile -*-===##
0 ##===- lib/CodeGen/AsmPrinter/Makefile ---------------------*- Makefile -*-===##
11 #
22 # The LLVM Compiler Infrastructure
33 #
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMAsmPrinter
10 PARALLEL_DIRS =
11 CXXFLAGS = -fno-rtti
1112
1213 include $(LEVEL)/Makefile.common
1010 LIBRARYNAME = LLVMCodeGen
1111 PARALLEL_DIRS = SelectionDAG AsmPrinter
1212 BUILD_ARCHIVE = 1
13 CXXFLAGS = -fno-rtti
1314
1415 include $(LEVEL)/Makefile.common
1516
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMSelectionDAG
10 PARALLEL_DIRS =
11 CXXFLAGS = -fno-rtti
1112
1213 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMInterpreter
11 CXXFLAGS = -fno-rtti
1012
1113 include $(LEVEL)/Makefile.common
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMJIT
11 CXXFLAGS = -fno-rtti
1012
1113 # Get the $(ARCH) setting
1214 include $(LEVEL)/Makefile.config
88 LEVEL = ../..
99 LIBRARYNAME = LLVMExecutionEngine
1010 PARALLEL_DIRS = Interpreter JIT
11 CXXFLAGS = -fno-rtti
1112
1213 include $(LEVEL)/Makefile.common
99 LEVEL = ../..
1010 LIBRARYNAME = LLVMLinker
1111 BUILD_ARCHIVE := 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMMCParser
1111 BUILD_ARCHIVE := 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
1010 LIBRARYNAME = LLVMMC
1111 BUILD_ARCHIVE := 1
1212 PARALLEL_DIRS := MCParser
13 CXXFLAGS = -fno-rtti
1314
1415 include $(LEVEL)/Makefile.common
1516
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMARMAsmParser
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' ARM target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMARMAsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' arm target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMARMCodeGen
1111 TARGET = ARM
12 CXXFLAGS = -fno-rtti
1213
1314 # Make sure that tblgen is run, first thing.
1415 BUILT_SOURCES = ARMGenRegisterInfo.h.inc ARMGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMARMInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMAlphaAsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' alpha target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMAlphaCodeGen
1011 TARGET = Alpha
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = AlphaGenRegisterInfo.h.inc AlphaGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMAlphaInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMBlackfinAsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' Blackfin target directory to grab private
1213 # headers
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMBlackfinCodeGen
1011 TARGET = Blackfin
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = BlackfinGenRegisterInfo.h.inc BlackfinGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMBlackfinInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
88
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMCBackend
11 CXXFLAGS = -fno-rtti
1112
1213 DIRS = TargetInfo
1314
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMCBackendInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
88
99 LEVEL = ../../../..
1010 LIBRARYNAME = LLVMCellSPUAsmPrinter
11 CXXFLAGS = -fno-rtti
1112
1213 # Hack: we need to include 'main' CellSPU target directory to grab
1314 # private headers
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMCellSPUCodeGen
1111 TARGET = SPU
12 CXXFLAGS = -fno-rtti
1213
1314 BUILT_SOURCES = SPUGenInstrNames.inc SPUGenRegisterNames.inc \
1415 SPUGenAsmWriter.inc SPUGenCodeEmitter.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMCellSPUInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
88
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMCppBackend
11 CXXFLAGS = -fno-rtti
1112
1213 DIRS = TargetInfo
1314
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMCppBackendInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
88
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMMSIL
11 CXXFLAGS = -fno-rtti
1112
1213 DIRS = TargetInfo
1314
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMMSILInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMMSP430AsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' MSP430 target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMMSP430CodeGen
1011 TARGET = MSP430
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = MSP430GenRegisterInfo.h.inc MSP430GenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMMSP430Info
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
99 LEVEL = ../..
1010 LIBRARYNAME = LLVMTarget
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 # We include this early so we can access the value of TARGETS_TO_BUILD as the
1415 # value for PARALLEL_DIRS which must be set before Makefile.rules is included
88
99 LEVEL = ../../../..
1010 LIBRARYNAME = LLVMMipsAsmPrinter
11 CXXFLAGS = -fno-rtti
1112
1213 # Hack: we need to include 'main' Mips target directory to grab
1314 # private headers
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMMipsCodeGen
1011 TARGET = Mips
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = MipsGenRegisterInfo.h.inc MipsGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMMipsInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMPIC16AsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' pic16 target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMPIC16CodeGen
1011 TARGET = PIC16
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = PIC16GenRegisterInfo.h.inc PIC16GenRegisterNames.inc \
99 TARGET = PIC16
1010 LIBRARYNAME = LLVMpic16passes
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMPIC16Info
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMPowerPCAsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' PowerPC target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMPowerPCCodeGen
1011 TARGET = PPC
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = PPCGenInstrNames.inc PPCGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMPowerPCInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMSparcAsmPrinter
10 CXXFLAGS = -fno-rtti
11
1012
1113 # Hack: we need to include 'main' Sparc target directory to grab private headers
1214 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMSparcCodeGen
1011 TARGET = Sparc
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = SparcGenRegisterInfo.h.inc SparcGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMSparcInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMSystemZAsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' SystemZ target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMSystemZCodeGen
1011 TARGET = SystemZ
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = SystemZGenRegisterInfo.h.inc SystemZGenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMSystemZInfo
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMX86AsmParser
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' x86 target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
99 LIBRARYNAME = LLVMX86AsmPrinter
10 CXXFLAGS = -fno-rtti
1011
1112 # Hack: we need to include 'main' x86 target directory to grab private headers
1213 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
88
99 LEVEL = ../../../..
1010 LIBRARYNAME = LLVMX86Disassembler
11 CXXFLAGS = -fno-rtti
1112
1213 # Hack: we need to include 'main' x86 target directory to grab private headers
1314 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMX86CodeGen
1011 TARGET = X86
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../../..
910 LIBRARYNAME = LLVMX86Info
11 CXXFLAGS = -fno-rtti
1012
1113 # Hack: we need to include 'main' target directory to grab private headers
1214 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
88
99 LEVEL = ../../../..
1010 LIBRARYNAME = LLVMXCoreAsmPrinter
11 CXXFLAGS = -fno-rtti
1112
1213 # Hack: we need to include 'main' XCore target directory to grab private headers
1314 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../..
910 LIBRARYNAME = LLVMXCoreCodeGen
1011 TARGET = XCore
12 CXXFLAGS = -fno-rtti
1113
1214 # Make sure that tblgen is run, first thing.
1315 BUILT_SOURCES = XCoreGenRegisterInfo.h.inc XCoreGenRegisterNames.inc \
55 # License. See LICENSE.TXT for details.
66 #
77 ##===----------------------------------------------------------------------===##
8
89 LEVEL = ../../../..
910 LIBRARYNAME = LLVMXCoreInfo
11 CXXFLAGS = -fno-rtti
1012
1113 # Hack: we need to include 'main' target directory to grab private headers
1214 CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
1010 LIBRARYNAME = LLVMHello
1111 LOADABLE_MODULE = 1
1212 USEDLIBS =
13 CXXFLAGS = -fno-rtti
1314
1415 include $(LEVEL)/Makefile.common
1516
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMipo
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMInstCombine
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMInstrumentation
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMScalarOpts
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMTransformUtils
1111 BUILD_ARCHIVE = 1
12 CXXFLAGS = -fno-rtti
1213
1314 include $(LEVEL)/Makefile.common
1415
88 LEVEL = ../..
99 LIBRARYNAME = LLVMCore
1010 BUILD_ARCHIVE = 1
11 #CXXFLAGS = -fno-rtti
1112
1213 BUILT_SOURCES = $(PROJ_OBJ_ROOT)/include/llvm/Intrinsics.gen
1314
1818 SHARED_LIBRARY = 1
1919 BUILD_ARCHIVE = 0
2020 LOADABLE_MODULE = 1
21 CXXFLAGS = -fno-rtti
2122
2223 LINK_COMPONENTS := support system
2324 LIBS += -llto
88
99 LEVEL = ../..
1010 TOOLNAME = llc
11 CXXFLAGS = -fno-rtti
1112
1213 # Include this here so we can get the configuration of the targets
1314 # that have been configured for construction. We have to do this
88
99 LEVEL := ../..
1010 TOOLNAME := lli
11 CXXFLAGS = -fno-rtti
1112 LINK_COMPONENTS := jit interpreter nativecodegen bitreader selectiondag
1213
1314 # Enable JIT support
1010 TOOLNAME = llvm-ar
1111 LINK_COMPONENTS = archive
1212 REQUIRES_EH := 1
13 #CXXFLAGS = -fno-rtti
1314
1415 # This tool has no plugins, optimize startup time.
1516 TOOL_NO_EXPORTS = 1
99 LEVEL = ../..
1010 TOOLNAME = llvm-as
1111 LINK_COMPONENTS := asmparser bitwriter
12 REQUIRES_EH := 1
12 CXXFLAGS = -fno-rtti
1313
1414 # This tool has no plugins, optimize startup time.
1515 TOOL_NO_EXPORTS = 1
99
1010 TOOLNAME = llvm-bcanalyzer
1111 LINK_COMPONENTS := bitreader
12 REQUIRES_EH := 1
1312
1413 # This tool has no plugins, optimize startup time.
1514 TOOL_NO_EXPORTS = 1
99 LEVEL = ../..
1010
1111 EXTRA_DIST = LibDeps.txt FinalLibDeps.txt llvm-config.in.in find-cycles.pl
12 REQUIRES_EH := 1
1312
1413 include $(LEVEL)/Makefile.common
1514
99
1010 TOOLNAME = llvm-dis
1111 LINK_COMPONENTS := bitreader
12 REQUIRES_EH := 1
12 CXXFLAGS = -fno-rtti
1313
1414 # This tool has no plugins, optimize startup time.
1515 TOOL_NO_EXPORTS = 1
1010
1111 TOOLNAME = llvm-extract
1212 LINK_COMPONENTS := ipo bitreader bitwriter asmparser
13 CXXFLAGS = -fno-rtti
1314
1415 # This tool has no plugins, optimize startup time.
1516 TOOL_NO_EXPORTS = 1
1010
1111 TOOLNAME = llvm-ld
1212 LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
13 CXXFLAGS = -fno-rtti
1314
1415 include $(LEVEL)/Makefile.common
99
1010 TOOLNAME = llvm-link
1111 LINK_COMPONENTS = linker bitreader bitwriter asmparser
12 CXXFLAGS = -fno-rtti
1213
1314 # This tool has no plugins, optimize startup time.
1415 TOOL_NO_EXPORTS = 1
1212 # This tool has no plugins, optimize startup time.
1313 TOOL_NO_EXPORTS = 1
1414 NO_INSTALL = 1
15 CXXFLAGS = -fno-rtti
1516
1617 # Include this here so we can get the configuration of the targets
1718 # that have been configured for construction. We have to do this
1212
1313 # This tool has no plugins, optimize startup time.
1414 TOOL_NO_EXPORTS = 1
15 CXXFLAGS = -fno-rtti
1516
1617 include $(LEVEL)/Makefile.common
1212
1313 # This tool has no plugins, optimize startup time.
1414 TOOL_NO_EXPORTS = 1
15 CXXFLAGS = -fno-rtti
1516
1617 include $(LEVEL)/Makefile.common
1616
1717 LINK_LIBS_IN_SHARED = 1
1818 SHARED_LIBRARY = 1
19 CXXFLAGS = -fno-rtti
1920
2021 LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter
2122
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = opt
10 CXXFLAGS = -fno-rtti
1011
1112 LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
1213
2222
2323 using namespace llvm;
2424
25 int dummy;
26
27 #if 0
2528 namespace {
2629
2730 struct FunctionEmittedEvent {
234237 testing::AddGlobalTestEnvironment(new JITEnvironment);
235238
236239 } // anonymous namespace
240 #endif
5757 return Result;
5858 }
5959
60 #if 0
6061 class RecordingJITMemoryManager : public JITMemoryManager {
6162 const OwningPtr Base;
6263 public:
177178 return Base->endExceptionTable(F, TableStart, TableEnd, FrameRegister);
178179 }
179180 };
181 #endif
180182
181183 bool LoadAssemblyInto(Module *M, const char *assembly) {
182184 SMDiagnostic Error;
194196 virtual void SetUp() {
195197 M = new Module("
", Context);
196198 MP = new ExistingModuleProvider(M);
199 #if 0
197200 RJMM = new RecordingJITMemoryManager;
198201 RJMM->setPoisonMemory(true);
202 #endif
199203 std::string Error;
200204 TheJIT.reset(EngineBuilder(MP).setEngineKind(EngineKind::JIT)
205 #if 0
201206 .setJITMemoryManager(RJMM)
207 #endif
202208 .setErrorStr(&Error).create());
203209 ASSERT_TRUE(TheJIT.get() != NULL) << Error;
204210 }
210216 LLVMContext Context;
211217 Module *M; // Owned by MP.
212218 ModuleProvider *MP; // Owned by ExecutionEngine.
219 #if 0
213220 RecordingJITMemoryManager *RJMM;
221 #endif
214222 OwningPtr TheJIT;
215223 };
216224
429437 TheJIT->getPointerToFunction(func);
430438 TheJIT->deleteModuleProvider(MP);
431439
440 #if 0
432441 SmallPtrSet FunctionsDeallocated;
433442 for (unsigned i = 0, e = RJMM->deallocateFunctionBodyCalls.size();
434443 i != e; ++i) {
462471 }
463472 EXPECT_EQ(RJMM->startExceptionTableCalls.size(),
464473 NumTablesDeallocated);
474 #endif
465475 }
466476
467477 // ARM and PPC still emit stubs for calls since the target may be too far away
496506
497507 // We should now allocate no more stubs, we have the code to foo
498508 // and the existing stub for bar.
509 #if 0
499510 int stubsBefore = RJMM->stubsAllocated;
511 #endif
500512 Function *func = M->getFunction("main");
501513 TheJIT->getPointerToFunction(func);
502514
503515 Function *bar = M->getFunction("bar");
504516 TheJIT->getPointerToFunction(bar);
505517
518 #if 0
506519 ASSERT_EQ(stubsBefore, RJMM->stubsAllocated);
520 #endif
507521 }
508522 #endif // !ARM && !PPC
509523
3131 #include "llvm/Assembly/PrintModulePass.h"
3232 #include "gtest/gtest.h"
3333
34 int dummy;
35
36 #if 0
37
3438 namespace llvm {
3539 namespace {
3640 // ND = no deps
524528
525529 }
526530 }
531 #endif