| 724 | } |
| 725 | |
| 726 | void BfCodeGen::ClearBuildCache() |
| 727 | { |
| 728 | AutoCrit autoCrit(mCacheCritSect); |
| 729 | for (auto& dirCachePair : mDirectoryCache) |
| 730 | { |
| 731 | auto dirData = dirCachePair.mValue; |
| 732 | dirData->Clear(); |
| 733 | } |
| 734 | // This just disables reading the cache file, but it does not disable creating |
| 735 | // the cache structes in memory and writing them out, thus it's valid to leave |
| 736 | // this 'true' forever |
| 737 | mDisableCacheReads = true; |
| 738 | |
| 739 | #ifdef BF_USE_CODEGEN_RELEASE_THUNK |
| 740 | BindReleaseThunks(); |
| 741 | if (mClearCacheFunc != NULL) |
| 742 | mClearCacheFunc(); |
| 743 | #endif |
| 744 | } |
| 745 | |
| 746 | void BfCodeGen::DoWriteObjectFile(BfCodeGenRequest* codeGenRequest, const void* ptr, int size, const StringImpl& outFileName, BfCodeGenResult* externResultPtr) |
| 747 | { |
no test coverage detected