mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-02 23:27:16 +00:00
[NFC] Add LazyValueInfo::clear method
This method just calls LazyValueInfoImpl::clear
This commit is contained in:
parent
126b37a713
commit
361034ba78
@ -114,6 +114,9 @@ public:
|
||||
/// Inform the analysis cache that we have erased a block.
|
||||
void eraseBlock(BasicBlock *BB);
|
||||
|
||||
/// Complete flush all previously computed values
|
||||
void clear(const Module *M);
|
||||
|
||||
/// Print the \LazyValueInfo Analysis.
|
||||
/// We pass in the DTree that is required for identifying which basic blocks
|
||||
/// we can solve/print for, in the LVIPrinter.
|
||||
|
@ -1885,6 +1885,11 @@ void LazyValueInfo::eraseBlock(BasicBlock *BB) {
|
||||
}
|
||||
}
|
||||
|
||||
void LazyValueInfo::clear(const Module *M) {
|
||||
if (PImpl) {
|
||||
getImpl(PImpl, AC, M).clear();
|
||||
}
|
||||
}
|
||||
|
||||
void LazyValueInfo::printLVI(Function &F, DominatorTree &DTree, raw_ostream &OS) {
|
||||
if (PImpl) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user