1 #ifndef SECTIONIFY_PASS_H
3 #define SECTIONIFY_PASS_H
11 class SectionifyPass
: public ModulePass
{
18 virtual bool runOnModule(Module
&M
);
21 std::map
<Regex
*, std::string
> functionRegexMap
;
22 std::vector
<Regex
*> functionRegexList
;
23 std::map
<Regex
*, std::string
> dataRegexMap
;
24 std::vector
<Regex
*> dataRegexList
;
25 std::string moduleName
;
27 bool sectionifyFromRegex(GlobalObject
*value
, Regex
*regex
, std::string
§ion
);
28 bool sectionify(GlobalObject
*value
, std::vector
<Regex
*> ®exList
, std::map
<Regex
*, std::string
> ®exMap
);
29 void parseAndInitRegexMap(cl::list
<std::string
> &stringListOpt
, std::vector
<Regex
*> ®exList
, std::map
<Regex
*, std::string
> ®exMap
, std::string regexType
);
30 bool initRegexMap(std::map
<Regex
*, std::string
> ®exMap
, std::vector
<Regex
*> ®exList
, std::map
<std::string
, std::string
> &stringMap
, std::vector
<std::string
> &stringList
, std::string regexType
);
31 bool parseStringMapOpt(std::map
<std::string
, std::string
> &map
, std::vector
<std::string
> &keyList
, std::vector
<std::string
> &stringList
);