| 225 | } |
| 226 | |
| 227 | void LlvmCodeGenCacheTest::GetLlvmEmptyFunction( |
| 228 | LlvmCodeGen* codegen, llvm::Function** func) { |
| 229 | ASSERT_TRUE(codegen != nullptr); |
| 230 | LlvmCodeGen::FnPrototype prototype(codegen, "TestEmpty", codegen->void_type()); |
| 231 | LlvmBuilder builder(codegen->context()); |
| 232 | llvm::Function* fn = prototype.GeneratePrototype(&builder, nullptr); |
| 233 | builder.CreateRetVoid(); |
| 234 | fn = codegen->FinalizeFunction(fn); |
| 235 | ASSERT_TRUE(fn != nullptr); |
| 236 | *func = fn; |
| 237 | } |
| 238 | |
| 239 | void LlvmCodeGenCacheTest::AddLlvmCodegenDouble( |
| 240 | LlvmCodeGen* codegen, string* module_id = nullptr, bool doFinalizeModule = true) { |
nothing calls this directly
no test coverage detected