From 36bb0ed43c9e0644cc92b6508ec2fff290c17034 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Thu, 21 Apr 2016 13:16:59 -0700 Subject: Move Fatal into utilities.h (#376) Follow-on from #372. Probably we should do even better for error handling, and that might mean a cpp file in support, but for now this is a small improvement. --- src/wasm-linker.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/wasm-linker.h') diff --git a/src/wasm-linker.h b/src/wasm-linker.h index b24056526..ceb948c4e 100644 --- a/src/wasm-linker.h +++ b/src/wasm-linker.h @@ -34,24 +34,6 @@ namespace wasm { cashew::IString EMSCRIPTEN_ASM_CONST("emscripten_asm_const"); -// For fatal errors which could arise from input (i.e. not assertion failures) -class Fatal { - public: - Fatal() { - std::cerr << "Fatal: "; - } - template - Fatal &operator<<(T arg) { - std::cerr << arg; - return *this; - } - ~Fatal() { - std::cerr << "\n"; - exit(1); - } -}; - - // Wasm module linking/layout information class Linker { public: -- cgit v1.2.3