mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
26 lines
572 B
C++
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
|