This allows to process HTML resources defined in .rc scripts and output them to resulting .res files. Additionally, some infrastructure allowing to output these files is created.
This is the first resource type we can operate on.
mnbvmar on Aug 29 2017, 5:58 PM.Authored by
Refactored the code to simplify the patches following this one.
Previously, resource classes had ability to output themselves, using and possibly modifying the current context. Now, Visitor class is introduced which holds the current context and processes resources one by one and serializes them.
This still holds the ability to output HTML resources.
Style fixes suggested in the comments. Integrated llvm-readobj into test invocation.
(I changed file and class names to ResourceFileWriter. However, I leave the revision as-is not to make confusion.)