| 1992 | } |
| 1993 | |
| 1994 | llvm::Value* LlvmCodeGen::GetPtrTo( |
| 1995 | LlvmBuilder* builder, llvm::Value* v, const char* name) { |
| 1996 | llvm::Value* ptr = CreateEntryBlockAlloca(*builder, v->getType(), name); |
| 1997 | builder->CreateStore(v, ptr); |
| 1998 | return ptr; |
| 1999 | } |
| 2000 | |
| 2001 | llvm::Constant* LlvmCodeGen::ConstantToGVPtr( |
| 2002 | llvm::Type* type, llvm::Constant* ir_constant, const string& name) { |
no test coverage detected