summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-05-09 18:20:56 +0000
committerMartin Storsjo <martin@martin.st>2018-05-09 18:20:56 +0000
commit7bc3c5822e408d3387f1d383ee50b2ed389ca949 (patch)
tree39d6015becb7a2525ff0c4d03288e50a095844b9 /llvm/tools
parentc1a67857ba0a6ba558818b589fe7c0fcc8f238ae (diff)
downloadbcm5719-llvm-7bc3c5822e408d3387f1d383ee50b2ed389ca949.tar.gz
bcm5719-llvm-7bc3c5822e408d3387f1d383ee50b2ed389ca949.zip
[llvm-rc] Add support for the RCDATA resource type
This is the same as any other user defined resource, but with a specific allocated resource type number. Differential Revision: https://reviews.llvm.org/D46636 llvm-svn: 331902
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptParser.cpp2
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptStmt.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptParser.cpp b/llvm/tools/llvm-rc/ResourceScriptParser.cpp
index 0319563e267..dbdb2210f9c 100644
--- a/llvm/tools/llvm-rc/ResourceScriptParser.cpp
+++ b/llvm/tools/llvm-rc/ResourceScriptParser.cpp
@@ -80,6 +80,8 @@ RCParser::ParseType RCParser::parseSingleResource() {
Result = parseIconResource();
else if (TypeToken->equalsLower("MENU"))
Result = parseMenuResource();
+ else if (TypeToken->equalsLower("RCDATA"))
+ Result = parseUserDefinedResource(RkRcData);
else if (TypeToken->equalsLower("VERSIONINFO"))
Result = parseVersionInfoResource();
else
diff --git a/llvm/tools/llvm-rc/ResourceScriptStmt.h b/llvm/tools/llvm-rc/ResourceScriptStmt.h
index 82f7d11aeb4..22a569c34f5 100644
--- a/llvm/tools/llvm-rc/ResourceScriptStmt.h
+++ b/llvm/tools/llvm-rc/ResourceScriptStmt.h
@@ -127,6 +127,7 @@ enum ResourceKind {
RkDialog = 5,
RkStringTableBundle = 6,
RkAccelerators = 9,
+ RkRcData = 10,
RkCursorGroup = 12,
RkIconGroup = 14,
RkVersionInfo = 16,
OpenPOWER on IntegriCloud