]> granicus.if.org Git - llvm/commit
[llvm-rc] Serialize STRINGTABLE statements to .res file.
authorZachary Turner <zturner@google.com>
Fri, 6 Oct 2017 21:30:55 +0000 (21:30 +0000)
committerZachary Turner <zturner@google.com>
Fri, 6 Oct 2017 21:30:55 +0000 (21:30 +0000)
commit84ad96bc3f02e6389bde1d35ab219819ab034f02
tree7169a63950c26c0313b70bf8dab46751e80173c4
parent93bb30da3fff23193de80f377c0822ec160a3a2a
[llvm-rc] Serialize STRINGTABLE statements to .res file.

This allows llvm-rc to serialize STRINGTABLE resources.

These are output in an unusual way: we locate them at the end of the
file, and strings are merged into bundles of max 16 strings, depending
on their IDs, language, and characteristics.

Ref: msdn.microsoft.com/en-us/library/windows/desktop/aa381050.aspx

Patch by: Marek Sokolowski
Differential Revision: https://reviews.llvm.org/D38420

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315112 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-rc/Inputs/tag-stringtable-basic.rc [new file with mode: 0644]
test/tools/llvm-rc/Inputs/tag-stringtable-same-ids.rc [new file with mode: 0644]
test/tools/llvm-rc/tag-stringtable.test [new file with mode: 0644]
tools/llvm-rc/ResourceFileWriter.cpp
tools/llvm-rc/ResourceFileWriter.h
tools/llvm-rc/ResourceScriptStmt.h
tools/llvm-rc/ResourceVisitor.h
tools/llvm-rc/llvm-rc.cpp