mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 11:38:04 +08:00
Make target info available to clang code generator.
This is far from complete but this helps clang codegen module make progress. llvm-svn: 43536
This commit is contained in:
@@ -24,8 +24,10 @@ using namespace clang;
|
||||
using namespace CodeGen;
|
||||
|
||||
|
||||
CodeGenModule::CodeGenModule(ASTContext &C, llvm::Module &M)
|
||||
: Context(C), TheModule(M), Types(C, M), CFConstantStringClassRef(0) {}
|
||||
CodeGenModule::CodeGenModule(ASTContext &C, llvm::Module &M,
|
||||
const llvm::TargetData &TD)
|
||||
: Context(C), TheModule(M), TheTargetData(TD),
|
||||
Types(C, M, TD), CFConstantStringClassRef(0) {}
|
||||
|
||||
llvm::Constant *CodeGenModule::GetAddrOfGlobalDecl(const ValueDecl *D) {
|
||||
// See if it is already in the map.
|
||||
|
||||
Reference in New Issue
Block a user