text: // This file if part of the genm-opt project.
  // Licensing information can be found in the LICENSE file.
  // (C) 2018 Nandor Licker. All rights reserved.
  
  #pragma once
  
  #include "core/pass.h"
  
  
  
  /**
   * Pass which eliminates unused functions and symbols.
   */
  class LocalConstPass final : public Pass {
  public:
    /// Pass identifier.
    static const char *kPassID;
  
    /// Initialises the pass.
    LocalConstPass(PassManager *passManager) : Pass(passManager) {}
  
    /// Runs the pass.
    void Run(Prog *prog) override;
  
    /// Returns the name of the pass.
    const char *GetPassName() const override;
  };
  