comparison gen/runtime.cpp @ 532:0beebf923322

merge
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 21 Aug 2008 15:35:39 +0200
parents d30c40f1128d
children 192b82878b78
comparison
equal deleted inserted replaced
531:f775ea9d09d3 532:0beebf923322
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 }