opt/init-classes/InitClassLoweringPass.h (13 lines of code) (raw):

/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "Pass.h" #include "PassManager.h" class InitClassLoweringPass : public Pass { public: InitClassLoweringPass() : Pass("InitClassLoweringPass") {} void bind_config() override; void run_pass(DexStoresVector&, ConfigFiles&, PassManager&) override; private: bool m_drop{false}; bool m_log_init_classes{false}; bool m_log_in_clinits{false}; };