mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
20 lines
429 B
C++
20 lines
429 B
C++
//
|
|
// Copyright (c) rev.ng Srls. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "revng-c/Liveness/LivenessAnalysisPass.h"
|
|
|
|
using namespace llvm;
|
|
|
|
bool LivenessAnalysisPass::runOnFunction(Function &F) {
|
|
LivenessAnalysis::Analysis LA(F);
|
|
LA.initialize();
|
|
LA.run();
|
|
LiveOut = LA.extractLiveOut();
|
|
return false;
|
|
}
|
|
|
|
char LivenessAnalysisPass::ID = 0;
|
|
|
|
static RegisterPass<LivenessAnalysisPass> X("liveness", "Liveness Analysis");
|