mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
ce87c30490
InlineHelpers is a simple pass that recursively inlines all the functions belonging to the section `revng_inline` in isolated functions.
20 lines
368 B
C++
20 lines
368 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "llvm/Pass.h"
|
|
|
|
#include "revng/BasicAnalyses/GeneratedCodeBasicInfo.h"
|
|
|
|
class InlineHelpersPass : public llvm::FunctionPass {
|
|
public:
|
|
static char ID;
|
|
|
|
public:
|
|
InlineHelpersPass() : FunctionPass(ID) {}
|
|
|
|
bool runOnFunction(llvm::Function &F) override;
|
|
};
|