Update for LLVM API change.

llvm-svn: 75446
This commit is contained in:
Owen Anderson
2009-07-13 04:10:07 +00:00
parent 53a52215b5
commit ae86c19e68
15 changed files with 97 additions and 82 deletions

View File

@@ -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;