summaryrefslogtreecommitdiff
path: root/tools/llc/llc.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-19 20:32:39 +0000
committerChris Lattner <sabre@nondot.org>2004-02-19 20:32:39 +0000
commit364d1203e7adaededf3c01f58bd968ee61f4a316 (patch)
treecaeb85f613a14b74669c85428fee9349bdef8256 /tools/llc/llc.cpp
parentf73b4ca7f9c5e4a19c3fba9fa0280768b4c64891 (diff)
downloadllvm-364d1203e7adaededf3c01f58bd968ee61f4a316.tar.gz
llvm-364d1203e7adaededf3c01f58bd968ee61f4a316.tar.bz2
llvm-364d1203e7adaededf3c01f58bd968ee61f4a316.tar.xz
Make sure to print a stack trace whenever an error signal is delivered to
the tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc/llc.cpp')
-rw-r--r--tools/llc/llc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 959bdbe36c..3176b4ce74 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -69,7 +69,8 @@ GetFileNameRoot(const std::string &InputFilename)
//
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n");
-
+ PrintStackTraceOnErrorSignal();
+
// Load the module to be compiled...
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
if (M.get() == 0) {