Mercurial > projects > ldc
comparison gen/runtime.cpp @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | 5c17f81fc1c1 |
children | db9890b3fb64 |
comparison
equal
deleted
inserted
replaced
162:1856c62af24b | 163:a8cd9bc1021a |
---|---|
533 types.push_back(aaTy); | 533 types.push_back(aaTy); |
534 const llvm::FunctionType* fty = llvm::FunctionType::get(sizeTy, types, false); | 534 const llvm::FunctionType* fty = llvm::FunctionType::get(sizeTy, types, false); |
535 new llvm::Function(fty, llvm::GlobalValue::ExternalLinkage, fname, M); | 535 new llvm::Function(fty, llvm::GlobalValue::ExternalLinkage, fname, M); |
536 } | 536 } |
537 | 537 |
538 // void* _aaGet(AA* aa, TypeInfo keyti, void* pkey, size_t valuesize) | 538 // void* _aaGet(AA* aa, TypeInfo keyti, size_t valuesize, void* pkey) |
539 { | 539 { |
540 std::string fname("_aaGet"); | 540 std::string fname("_aaGet"); |
541 std::vector<const llvm::Type*> types; | 541 std::vector<const llvm::Type*> types; |
542 types.push_back(aaTy); | 542 types.push_back(aaTy); |
543 types.push_back(typeInfoTy); | 543 types.push_back(typeInfoTy); |
544 types.push_back(voidPtrTy); | 544 types.push_back(sizeTy); |
545 types.push_back(sizeTy); | 545 types.push_back(voidPtrTy); |
546 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); | 546 const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); |
547 new llvm::Function(fty, llvm::GlobalValue::ExternalLinkage, fname, M); | 547 new llvm::Function(fty, llvm::GlobalValue::ExternalLinkage, fname, M); |
548 } | 548 } |
549 | 549 |
550 // void* _aaGetRvalue(AA aa, TypeInfo keyti, size_t valuesize, void* pkey) | 550 // void* _aaGetRvalue(AA aa, TypeInfo keyti, size_t valuesize, void* pkey) |