mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
d6a4fcdfb5
This method exposes the results of the analysis to the outside world.
21 lines
461 B
C++
21 lines
461 B
C++
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// local includes
|
|
#include "LivenessAnalysisPass.h"
|
|
|
|
using namespace llvm;
|
|
|
|
bool LivenessAnalysisPass::runOnFunction(Function &F) {
|
|
LivenessAnalysis::Analysis LA(F);
|
|
LA.initialize();
|
|
LA.run();
|
|
LiveIn = LA.extractLiveIn();
|
|
return false;
|
|
}
|
|
|
|
char LivenessAnalysisPass::ID = 0;
|
|
|
|
static RegisterPass<LivenessAnalysisPass> X("liveness", "Liveness Analysis");
|