summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptParser.cpp
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/llvm-rc/ResourceScriptParser.cpp
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/llvm-rc/ResourceScriptParser.cpp')
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptParser.cpp2
1 files changed, 2 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
OpenPOWER on IntegriCloud