comparison gen/toir.cpp @ 987:73ff89728d85

Call llvm_shutdown when shutting down the backend.
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 25 Feb 2009 19:30:06 +0100
parents d96471e8b5e5
children 18ad5601dff7
comparison
equal deleted inserted replaced
986:a8cb25d478c4 987:73ff89728d85
34 #include "gen/complex.h" 34 #include "gen/complex.h"
35 #include "gen/dvalue.h" 35 #include "gen/dvalue.h"
36 #include "gen/aa.h" 36 #include "gen/aa.h"
37 #include "gen/functions.h" 37 #include "gen/functions.h"
38 #include "gen/todebug.h" 38 #include "gen/todebug.h"
39
40 #include "llvm/Support/ManagedStatic.h"
39 41
40 ////////////////////////////////////////////////////////////////////////////////////////// 42 //////////////////////////////////////////////////////////////////////////////////////////
41 43
42 DValue* DeclarationExp::toElem(IRState* p) 44 DValue* DeclarationExp::toElem(IRState* p)
43 { 45 {
2773 } 2775 }
2774 2776
2775 void backend_term() 2777 void backend_term()
2776 { 2778 {
2777 LLVM_D_FreeRuntime(); 2779 LLVM_D_FreeRuntime();
2778 } 2780 llvm::llvm_shutdown();
2781 }