Make mangler a class and reformat graph.

This commit is contained in:
Danila Fedorin 2020-09-15 19:13:48 -07:00
parent 3fbca52845
commit f4b5069125
2 changed files with 32 additions and 29 deletions

View File

@ -17,6 +17,7 @@ struct group {
using group_ptr = std::unique_ptr<group>; using group_ptr = std::unique_ptr<group>;
class function_graph { class function_graph {
private:
using group_id = size_t; using group_id = size_t;
struct group_data { struct group_data {

View File

@ -2,8 +2,10 @@
#include <string> #include <string>
#include <map> #include <map>
struct mangler { class mangler {
private:
std::map<std::string, int> occurence_count; std::map<std::string, int> occurence_count;
public:
std::string new_mangled_name(const std::string& str); std::string new_mangled_name(const std::string& str);
}; };