mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
0bfb73fe95
FunctionMetadata was being deserialized every time they were inspected. This commit introduces a cache structure to prevent this excessive deserializations.
17 lines
667 B
C++
17 lines
667 B
C++
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "revng/EarlyFunctionAnalysis/FunctionMetadataCache.h"
|
|
|
|
char FunctionMetadataCachePass::ID = '_';
|
|
|
|
llvm::AnalysisKey FunctionMetadataCacheAnalysis::Key;
|
|
|
|
static llvm::RegisterPass<FunctionMetadataCachePass> _("metadata-cache",
|
|
"Create metadata cache "
|
|
"to be "
|
|
"used by later passes",
|
|
true,
|
|
true);
|