Tools require EH for their top-level try blocks.

llvm-svn: 29035
diff --git a/llvm/tools/analyze/Makefile b/llvm/tools/analyze/Makefile
index 0f0eb72..e3885a9 100644
--- a/llvm/tools/analyze/Makefile
+++ b/llvm/tools/analyze/Makefile
@@ -12,5 +12,6 @@
            LLVMDataStructure \
 	   LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
 	   LLVMTransformUtils.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/bugpoint/Makefile b/llvm/tools/bugpoint/Makefile
index 338122a..b713650 100644
--- a/llvm/tools/bugpoint/Makefile
+++ b/llvm/tools/bugpoint/Makefile
@@ -17,5 +17,6 @@
 	   LLVMTransformUtils.a \
 	   LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
 	   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/gccas/Makefile b/llvm/tools/gccas/Makefile
index 55b0379..1f62ade 100644
--- a/llvm/tools/gccas/Makefile
+++ b/llvm/tools/gccas/Makefile
@@ -12,5 +12,6 @@
 USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a \
            LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
            LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/gccld/Makefile b/llvm/tools/gccld/Makefile
index 44c6be9..7638f7f 100644
--- a/llvm/tools/gccld/Makefile
+++ b/llvm/tools/gccld/Makefile
@@ -14,5 +14,6 @@
            LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
            LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
            LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llc/Makefile b/llvm/tools/llc/Makefile
index 53f9813..80af5aa 100644
--- a/llvm/tools/llc/Makefile
+++ b/llvm/tools/llc/Makefile
@@ -9,6 +9,7 @@
 
 LEVEL = ../..
 TOOLNAME = llc
+REQUIRES_EH := 1
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 
diff --git a/llvm/tools/lli/Makefile b/llvm/tools/lli/Makefile
index 0e537f9..8952b12 100644
--- a/llvm/tools/lli/Makefile
+++ b/llvm/tools/lli/Makefile
@@ -9,6 +9,7 @@
 LEVEL    := ../..
 TOOLNAME := lli
 LLVMLIBS := JIT
+REQUIRES_EH := 1
 
 # Enable JIT support
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-ar/Makefile b/llvm/tools/llvm-ar/Makefile
index fbc2bcf..18da617 100644
--- a/llvm/tools/llvm-ar/Makefile
+++ b/llvm/tools/llvm-ar/Makefile
@@ -11,6 +11,7 @@
 TOOLNAME = llvm-ar
 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
 	   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
 
diff --git a/llvm/tools/llvm-as/Makefile b/llvm/tools/llvm-as/Makefile
index 73dcb06..bd7c3d3 100644
--- a/llvm/tools/llvm-as/Makefile
+++ b/llvm/tools/llvm-as/Makefile
@@ -10,5 +10,6 @@
 TOOLNAME = llvm-as
 USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
            LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-bcanalyzer/Makefile b/llvm/tools/llvm-bcanalyzer/Makefile
index 7914646..b3acd01 100644
--- a/llvm/tools/llvm-bcanalyzer/Makefile
+++ b/llvm/tools/llvm-bcanalyzer/Makefile
@@ -10,4 +10,6 @@
 
 TOOLNAME = llvm-bcanalyzer
 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
+
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-config/Makefile b/llvm/tools/llvm-config/Makefile
index 413fd0a..16d8ba7 100644
--- a/llvm/tools/llvm-config/Makefile
+++ b/llvm/tools/llvm-config/Makefile
@@ -10,6 +10,7 @@
 LEVEL = ../..
 
 EXTRA_DIST = LibDeps.txt FinalLibDeps.txt llvm-config.in.in find-cycles.pl
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
 
diff --git a/llvm/tools/llvm-db/Makefile b/llvm/tools/llvm-db/Makefile
index 31ebbba..e7bc95f 100644
--- a/llvm/tools/llvm-db/Makefile
+++ b/llvm/tools/llvm-db/Makefile
@@ -11,5 +11,6 @@
 TOOLNAME = llvm-db
 USEDLIBS = LLVMDebugger LLVMBCReader.a LLVMCore.a LLVMSupport.a \
 	  LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-dis/Makefile b/llvm/tools/llvm-dis/Makefile
index 8e54fb3..011409e 100644
--- a/llvm/tools/llvm-dis/Makefile
+++ b/llvm/tools/llvm-dis/Makefile
@@ -10,4 +10,6 @@
 
 TOOLNAME = llvm-dis
 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
+
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-extract/Makefile b/llvm/tools/llvm-extract/Makefile
index 73d5883..20a107c 100644
--- a/llvm/tools/llvm-extract/Makefile
+++ b/llvm/tools/llvm-extract/Makefile
@@ -12,5 +12,6 @@
 USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
 	   LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
            LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-ld/Makefile b/llvm/tools/llvm-ld/Makefile
index eb2158a..636aea4 100644
--- a/llvm/tools/llvm-ld/Makefile
+++ b/llvm/tools/llvm-ld/Makefile
@@ -14,5 +14,6 @@
 	   LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
 	   LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
 	   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-link/Makefile b/llvm/tools/llvm-link/Makefile
index 41594f2..0663396 100644
--- a/llvm/tools/llvm-link/Makefile
+++ b/llvm/tools/llvm-link/Makefile
@@ -11,5 +11,6 @@
 TOOLNAME = llvm-link
 USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
 	   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-nm/Makefile b/llvm/tools/llvm-nm/Makefile
index 996b349..c7502e2 100644
--- a/llvm/tools/llvm-nm/Makefile
+++ b/llvm/tools/llvm-nm/Makefile
@@ -11,4 +11,6 @@
 TOOLNAME = llvm-nm
 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
 	   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
+
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-prof/Makefile b/llvm/tools/llvm-prof/Makefile
index 029297a..9774f64 100644
--- a/llvm/tools/llvm-prof/Makefile
+++ b/llvm/tools/llvm-prof/Makefile
@@ -11,5 +11,6 @@
 TOOLNAME = llvm-prof
 USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
            LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-ranlib/Makefile b/llvm/tools/llvm-ranlib/Makefile
index b97c17c..1379532 100644
--- a/llvm/tools/llvm-ranlib/Makefile
+++ b/llvm/tools/llvm-ranlib/Makefile
@@ -11,5 +11,6 @@
 TOOLNAME = llvm-ranlib
 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
 	   LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm2cpp/Makefile b/llvm/tools/llvm2cpp/Makefile
index d6b65c8..cc3169c 100644
--- a/llvm/tools/llvm2cpp/Makefile
+++ b/llvm/tools/llvm2cpp/Makefile
@@ -9,6 +9,7 @@
 LEVEL = ../..
 TOOLNAME = llvm2cpp
 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
 
diff --git a/llvm/tools/llvmc/Makefile b/llvm/tools/llvmc/Makefile
index 62fa82e..0e63d13 100644
--- a/llvm/tools/llvmc/Makefile
+++ b/llvm/tools/llvmc/Makefile
@@ -11,6 +11,7 @@
 USEDLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a
 CONFIG_FILES = c cpp ll
 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
+REQUIRES_EH := 1
 
 # The CompilerDriver needs to know the locations of several configured
 # directories and paths. We define these as preprocessor symbols so they can 
diff --git a/llvm/tools/opt/Makefile b/llvm/tools/opt/Makefile
index c262040..f310639 100644
--- a/llvm/tools/opt/Makefile
+++ b/llvm/tools/opt/Makefile
@@ -8,6 +8,7 @@
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 TOOLNAME = opt
+REQUIRES_EH := 1
 
 USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
 	   LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure LLVMTransforms.a \