diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-13 04:10:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-13 04:10:07 +0000 |
commit | ae86c19e68d67d50d2c9cbef51e1129545634ece (patch) | |
tree | 3b56c41bb8c677e44ba6cf2ec2a2ce27e4a01220 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 53a52215b5480bd52f1aee5189c7b08a7098fc51 (diff) | |
download | bcm5719-llvm-ae86c19e68d67d50d2c9cbef51e1129545634ece.tar.gz bcm5719-llvm-ae86c19e68d67d50d2c9cbef51e1129545634ece.zip |
Update for LLVM API change.
llvm-svn: 75446
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index ba9f1b28a07..894001a3cc0 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -21,6 +21,7 @@ #include "CGCall.h" #include "CGCXX.h" #include "CodeGenTypes.h" +#include "llvm/Module.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringSet.h" @@ -34,6 +35,7 @@ namespace llvm { class GlobalValue; class TargetData; class FunctionType; + class LLVMContext; } namespace clang { @@ -202,6 +204,7 @@ public: CodeGenTypes &getTypes() { return Types; } Diagnostic &getDiags() const { return Diags; } const llvm::TargetData &getTargetData() const { return TheTargetData; } + llvm::LLVMContext &getLLVMContext() { return TheModule.getContext(); } /// getDeclVisibilityMode - Compute the visibility of the decl \arg D. LangOptions::VisibilityMode getDeclVisibilityMode(const Decl *D) const; |