summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceFileWriter.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-10-06 21:52:15 +0000
committerZachary Turner <zturner@google.com>2017-10-06 21:52:15 +0000
commit9d8b358a49bec7cbd225062962d7959854d04338 (patch)
tree0ad67c49d228aa0624cb8c1f0cc7fadb976806d3 /llvm/tools/llvm-rc/ResourceFileWriter.h
parentaccab5908d4137f8e49ae653d14d37ea46132f28 (diff)
downloadbcm5719-llvm-9d8b358a49bec7cbd225062962d7959854d04338.tar.gz
bcm5719-llvm-9d8b358a49bec7cbd225062962d7959854d04338.zip
[llvm-rc] Serialize user-defined resources to .res files.
This allows rc to serialize user-defined resources, as documented at: msdn.microsoft.com/en-us/library/windows/desktop/aa381054.aspx Escape sequences are yet unavailable, and are to be added in one of child patches. Patch by: Marek Sokolowski Differential Revision: https://reviews.llvm.org/D38423 llvm-svn: 315117
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceFileWriter.h')
-rw-r--r--llvm/tools/llvm-rc/ResourceFileWriter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-rc/ResourceFileWriter.h b/llvm/tools/llvm-rc/ResourceFileWriter.h
index 905f56f5381..b4427160711 100644
--- a/llvm/tools/llvm-rc/ResourceFileWriter.h
+++ b/llvm/tools/llvm-rc/ResourceFileWriter.h
@@ -38,6 +38,7 @@ public:
Error visitMenuResource(const RCResource *) override;
Error visitVersionInfoResource(const RCResource *) override;
Error visitStringTableResource(const RCResource *) override;
+ Error visitUserDefinedResource(const RCResource *) override;
Error visitCaptionStmt(const CaptionStmt *) override;
Error visitCharacteristicsStmt(const CharacteristicsStmt *) override;
@@ -127,6 +128,9 @@ private:
Error insertStringIntoBundle(StringTableInfo::Bundle &Bundle,
uint16_t StringID, StringRef String);
+ // User defined resource
+ Error writeUserDefinedBody(const RCResource *);
+
// VersionInfoResource
Error writeVersionInfoBody(const RCResource *);
Error writeVersionInfoBlock(const VersionInfoBlock &);
OpenPOWER on IntegriCloud