Mercurial > projects > ldc
comparison gen/irstate.cpp @ 1535:61f12f4651b5
Don't use llvm::getGlobalContext() anymore
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 20:16:15 +0200 |
parents | ad7f2f1862d6 |
children | 7f728c52e63c |
comparison
equal
deleted
inserted
replaced
1534:8ca25bd765a3 | 1535:61f12f4651b5 |
---|---|
20 const llvm::TargetData* gTargetData = 0; | 20 const llvm::TargetData* gTargetData = 0; |
21 TargetABI* gABI = 0; | 21 TargetABI* gABI = 0; |
22 | 22 |
23 ////////////////////////////////////////////////////////////////////////////////////////// | 23 ////////////////////////////////////////////////////////////////////////////////////////// |
24 IRScope::IRScope() | 24 IRScope::IRScope() |
25 : builder(llvm::getGlobalContext()) | 25 : builder(gIR->context()) |
26 { | 26 { |
27 begin = end = NULL; | 27 begin = end = NULL; |
28 } | 28 } |
29 | 29 |
30 IRScope::IRScope(llvm::BasicBlock* b, llvm::BasicBlock* e) | 30 IRScope::IRScope(llvm::BasicBlock* b, llvm::BasicBlock* e) |