For PR351:
authorReid Spencer <rspencer@reidspencer.com>
Thu, 30 Dec 2004 05:36:08 +0000 (05:36 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 30 Dec 2004 05:36:08 +0000 (05:36 +0000)
commit1ef8bdaedbd98bee35a573b8bc87149f2182cb5e
treedc21da7903997dfbcf6061f19b35a2a522c740b9
parentc18671cdcd53df08cbeff7ecf443475f61971b9d
For PR351:
* Place a try/catch block around the entire tool to Make sure std::string
  exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
  abort with a useless message but indicate than an unhandled exception was
  generated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19192 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
tools/analyze/analyze.cpp
tools/bugpoint/bugpoint.cpp
tools/extract/extract.cpp
tools/gccas/gccas.cpp
tools/llc/llc.cpp
tools/lli/lli.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
tools/llvm-db/llvm-db.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-ld/llvm-ld.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-nm/llvm-nm.cpp
tools/llvm-prof/llvm-prof.cpp
tools/llvmc/llvmc.cpp
tools/opt/opt.cpp