Files
revng-revng/lib/StackAnalysis/ABIDetectionPass.cpp
2020-11-13 10:00:24 +01:00

26 lines
572 B
C++

/// \file ABIDetectionPass.cpp
/// \brief
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/StackAnalysis/ABIDetectionPass.h"
using namespace llvm;
namespace StackAnalysis {
char ABIDetectionPass::ID = 0;
using Register = RegisterPass<ABIDetectionPass>;
static Register X("detect-abi", "ABI Detection Pass", true, true);
bool ABIDetectionPass::runOnModule(Module &M) {
auto &SA = getAnalysis<StackAnalysis<true>>();
SA.serializeMetadata(*M.getFunction("root"));
return false;
}
} // namespace StackAnalysis