From f61733cb57c95526bc66224bf85bc8163f709eed Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Wed, 25 Feb 2009 19:30:06 +0100 Subject: [PATCH] Call llvm_shutdown when shutting down the backend. --- gen/toir.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gen/toir.cpp b/gen/toir.cpp index 4bb82022..cab13b71 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -37,6 +37,8 @@ #include "gen/functions.h" #include "gen/todebug.h" +#include "llvm/Support/ManagedStatic.h" + ////////////////////////////////////////////////////////////////////////////////////////// DValue* DeclarationExp::toElem(IRState* p) @@ -2775,4 +2777,5 @@ void backend_init() void backend_term() { LLVM_D_FreeRuntime(); + llvm::llvm_shutdown(); }