/// \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; static Register X("detect-abi", "ABI Detection Pass", true, true); bool ABIDetectionPass::runOnModule(Module &M) { auto &GCBI = getAnalysis().getGCBI(); auto &SA = getAnalysis(); SA.serializeMetadata(*M.getFunction("root"), GCBI); return false; } } // namespace StackAnalysis