about summary refs log tree commit diff stats
path: root/subx/012elf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'subx/012elf.cc')
-rw-r--r--subx/012elf.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/subx/012elf.cc b/subx/012elf.cc
index da70adec..9bd6cbf1 100644
--- a/subx/012elf.cc
+++ b/subx/012elf.cc
@@ -94,8 +94,7 @@ void push(uint32_t val) {
     raise << "The stack overflowed its segment. "
           << "Maybe SPACE_FOR_SEGMENT should be larger? "
           << "Or you need to carve out an exception for the stack segment "
-          << "to be larger.\n" << end();
-    exit(1);
+          << "to be larger.\n" << die();
   }
   trace(Callstack_depth+1, "run") << "decrementing ESP to 0x" << HEXWORD << Reg[ESP].u << end();
   trace(Callstack_depth+1, "run") << "pushing value 0x" << HEXWORD << val << end();
@@ -182,14 +181,6 @@ ostream& operator<<(ostream& os, perr /*unused*/) {
   return os;
 }
 
-:(before "End Types")
-struct die {};
-:(code)
-ostream& operator<<(ostream& /*unused*/, die /*unused*/) {
-  if (Trace_stream) Trace_stream->newline();
-  exit(1);
-}
-
 :(before "End Includes")
 #include <sys/types.h>
 #include <sys/stat.h>