Files
revng-revng/include/revng-c/PromoteStackPointer/PromoteStackPointerPass.h
T
Alessandro Di Federico e73bd95493 Improve handling of declarations
SegregateStackAccesses and PromoteStackPointer were not handling
functions declarated (but not defined) properly.

This commit fixes this, in part by adopting `TaggedFunctionPass`.
2023-03-13 13:42:33 +01:00

22 lines
506 B
C++

#pragma once
//
// Copyright (c) rev.ng Labs Srl. See LICENSE.md for details.
//
#include "revng/Support/TaggedFunctionPass.h"
struct PromoteStackPointerPass : public TaggedFunctionPass {
public:
static char ID;
PromoteStackPointerPass() :
TaggedFunctionPass(ID,
&FunctionTags::Isolated,
&FunctionTags::StackPointerPromoted) {}
void getAnalysisUsage(llvm::AnalysisUsage &AU) const override;
bool runOnFunction(llvm::Function &F) override;
};