P4C
The P4 Compiler
P4::RemoveUnusedPolicy Class Reference
Inheritance diagram for P4::RemoveUnusedPolicy:
[legend]

Public Member Functions

virtual RemoveUnusedDeclarationsgetRemoveUnusedDeclarationsPass (const ReferenceMap *refMap, bool warn=false) const
 

Member Function Documentation

◆ getRemoveUnusedDeclarationsPass()

RemoveUnusedDeclarations * P4::RemoveUnusedPolicy::getRemoveUnusedDeclarationsPass ( const ReferenceMap refMap,
bool  warn = false 
) const
virtual

The policy for removing unused declarations is baked into the pass – targets can specify their own subclass of the pass with a changed policy and return that here