Make mangler a class and reformat graph.

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

View File

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

View File

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