comparison gen/runtime.cpp @ 530:d30c40f1128d

Make class invariants work.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:19:45 +0200
parents cc40db549aea
children 192b82878b78
comparison
equal deleted inserted replaced
529:cef0cbcf7d22 530:d30c40f1128d
881 std::vector<const LLType*> types; 881 std::vector<const LLType*> types;
882 types.push_back(voidPtrTy); 882 types.push_back(voidPtrTy);
883 const llvm::FunctionType* fty = llvm::FunctionType::get(voidTy, types, false); 883 const llvm::FunctionType* fty = llvm::FunctionType::get(voidTy, types, false);
884 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M); 884 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
885 } 885 }
886 } 886
887 /////////////////////////////////////////////////////////////////////////////////////
888 /////////////////////////////////////////////////////////////////////////////////////
889 /////////////////////////////////////////////////////////////////////////////////////
890
891 // void _d_invariant(Object o)
892 {
893 std::string fname("_d_invariant");
894 std::vector<const LLType*> types;
895 types.push_back(objectTy);
896 const llvm::FunctionType* fty = llvm::FunctionType::get(voidTy, types, false);
897 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
898 }
899 }