aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-13 04:10:07 +0000
committerOwen Anderson <resistor@mac.com>2009-07-13 04:10:07 +0000
commit69243825cb5c91ec7207256aa57ae327cfaf8cb2 (patch)
tree320811e1011cf872fe0196533f1e3cdbf125b8a3 /lib/CodeGen/CodeGenFunction.h
parentce7b38c4f1ea9c51e2f46a82e3f57456b74269d5 (diff)
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index afa0f9c8d5..2c4d311ac2 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -22,6 +22,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/ValueHandle.h"
#include <map>
+#include "CodeGenModule.h"
#include "CGBlocks.h"
#include "CGBuilder.h"
#include "CGCall.h"
@@ -30,6 +31,7 @@
namespace llvm {
class BasicBlock;
+ class LLVMContext;
class Module;
class SwitchInst;
class Value;
@@ -292,6 +294,8 @@ public:
llvm::BasicBlock *getInvokeDest() { return InvokeDest; }
void setInvokeDest(llvm::BasicBlock *B) { InvokeDest = B; }
+ llvm::LLVMContext &getLLVMContext() { return CGM.getLLVMContext(); }
+
//===--------------------------------------------------------------------===//
// Objective-C
//===--------------------------------------------------------------------===//