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.
Differential D37283
[llvm-rc] Serialize HTML resources to .res files (serialization, pt 1). mnbvmar on Aug 29 2017, 5:58 PM. Authored by
Details
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.
Diff Detail
Event Timeline
Comment Actions 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. Comment Actions This fixes @ecbeckmann's comment https://reviews.llvm.org/D37824#inline-329768 (set type IDs and memory flags as constants). It's probably better to fix this in the first patch this appears in.
Comment Actions 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.) |