summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceFileWriter.h
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-05-15 19:21:28 +0000
committerMartin Storsjo <martin@martin.st>2018-05-15 19:21:28 +0000
commite241ce6f65f1c6373886a6c7f505fc59d0bf244d (patch)
tree39c14204c332c6493c05b13a82c88a2a21d748c0 /llvm/tools/llvm-rc/ResourceFileWriter.h
parent67cfbaac8973f1f0cf85bd2e90c74b42792ceada (diff)
downloadbcm5719-llvm-e241ce6f65f1c6373886a6c7f505fc59d0bf244d.tar.gz
bcm5719-llvm-e241ce6f65f1c6373886a6c7f505fc59d0bf244d.zip
[llvm-rc] Add support for the optional CLASS statement for dialogs
Differential Revision: https://reviews.llvm.org/D46875 llvm-svn: 332386
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceFileWriter.h')
-rw-r--r--llvm/tools/llvm-rc/ResourceFileWriter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-rc/ResourceFileWriter.h b/llvm/tools/llvm-rc/ResourceFileWriter.h
index 695d455b6eb..4c31d018bde 100644
--- a/llvm/tools/llvm-rc/ResourceFileWriter.h
+++ b/llvm/tools/llvm-rc/ResourceFileWriter.h
@@ -62,6 +62,7 @@ public:
Error visitCaptionStmt(const CaptionStmt *) override;
Error visitCharacteristicsStmt(const CharacteristicsStmt *) override;
+ Error visitClassStmt(const ClassStmt *) override;
Error visitFontStmt(const FontStmt *) override;
Error visitLanguageStmt(const LanguageResource *) override;
Error visitStyleStmt(const StyleStmt *) override;
@@ -88,8 +89,11 @@ public:
uint32_t Charset;
};
Optional<FontInfo> Font;
+ IntOrString Class;
- ObjectInfo() : LanguageInfo(0), Characteristics(0), VersionInfo(0) {}
+ ObjectInfo()
+ : LanguageInfo(0), Characteristics(0), VersionInfo(0),
+ Class(StringRef()) {}
} ObjectData;
struct StringTableInfo {
OpenPOWER on IntegriCloud