summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas/gccas.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
commit69e896bdcfe4b4982030e512d157eeb5b1c75da4 (patch)
tree477e0f7967d20896b29974f094fce7cd78a4d5ef /llvm/tools/gccas/gccas.cpp
parent12439ffbacccb4919a106602cfca62b7a39d07a1 (diff)
downloadbcm5719-llvm-69e896bdcfe4b4982030e512d157eeb5b1c75da4.tar.gz
bcm5719-llvm-69e896bdcfe4b4982030e512d157eeb5b1c75da4.zip
Make sure to print a stack trace whenever an error signal is delivered to
the tool. llvm-svn: 11633
Diffstat (limited to 'llvm/tools/gccas/gccas.cpp')
-rw-r--r--llvm/tools/gccas/gccas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index 1abf251fce3..7b5018a5198 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/tools/gccas/gccas.cpp
@@ -107,6 +107,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm .s -> .o assembler for GCC\n");
+ PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M;
try {
OpenPOWER on IntegriCloud