MCPcopy Create free account
hub / github.com/WheretIB/nullc / EndLLVMGeneration

Function EndLLVMGeneration

NULLC/SyntaxTreeLLVM.cpp:361–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360
361void EndLLVMGeneration()
362{
363 //delete llvm::getPassRegistrar();
364 //for(unsigned int i = 0; i < globals.size(); i++)
365 // delete globals[i];
366 //globals.clear();
367 /*for(unsigned int i = 0; i < CodeInfo::typeInfo.size(); i++)
368 if(((llvm::Type*)CodeInfo::typeInfo[i]->llvmType)->isAbstract())
369 ((llvm::Type*)CodeInfo::typeInfo[i]->llvmType)->dropRef();*/
370
371 //TheExecutionEngine->~ExecutionEngine();
372 delete OurPM;
373 OurPM = NULL;
374 delete OurFPM;
375 OurFPM = NULL;
376 V = NULL;
377 F = NULL;
378 delete TheModule;
379 TheModule = NULL;
380
381 //llvm::getGlobalContext().~LLVMContext();
382 //Builder.~IRBuilder();
383 //for(unsigned int i = 0; i < globals.size(); i++)
384 // delete globals[i];
385 //globals.clear();
386// llvm_shutdown();
387}
388
389Value* PromoteToStackType(Value *V, TypeInfo *type)
390{

Callers 1

CompileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected