// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // LabelGenerator.h -- // // Author : Rodolfo G. Esteves // Created On : Mon May 18 07:44:20 2015 // Last Modified By : Peter A. Buhr // Last Modified On : Mon Jan 31 22:30:10 2022 // Update Count : 16 // #pragma once #include // for string #include "SynTree/Label.h" // for Label class Statement; namespace ast { class Stmt; class Label; } namespace ControlStruct { class LabelGenerator { static int current; static LabelGenerator *labelGenerator; protected: LabelGenerator() {} public: static LabelGenerator *getGenerator(); static Label newLabel(std::string suffix, Statement * stmt = nullptr); }; } // namespace ControlStruct // Local Variables: // // tab-width: 4 // // mode: c++ // // compile-command: "make install" // // End: //