Return true if the provided key exists.
| 523 | |
| 524 | // Return true if the provided key exists. |
| 525 | bool LlvmCodeGenCacheTest::CheckKeyExist(TCodeGenCacheMode::type mode, string key) { |
| 526 | CodeGenCacheKey cache_key; |
| 527 | CodeGenCacheEntry entry; |
| 528 | CodeGenCacheKeyConstructor::construct(key, &cache_key); |
| 529 | EXPECT_OK(codegen_cache_->Lookup(cache_key, mode, &entry, &codegen_obj_cache_)); |
| 530 | return !entry.Empty(); |
| 531 | } |
| 532 | |
| 533 | // Return true if the provided engine exists. |
| 534 | bool LlvmCodeGenCacheTest::CheckEngineExist(CodeGenObjectCache* cached_engine) { |