diff options
author | Zachary Turner <zturner@google.com> | 2017-10-11 20:12:09 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-10-11 20:12:09 +0000 |
commit | e315d738d1b61d5620a6157b76ba18a311868e6d (patch) | |
tree | 5a2a8c92e965fe54e89ae2d80eac3fbdc03741d0 /tools/llvm-rc/ResourceScriptParser.h | |
parent | 7d7645fe0b3495ab4c84ff33fdd3f03ebdef43db (diff) |
[llvm-rc] Use proper search algorithm for finding resources.
Previously we would only look in the current directory for a
resource, which might not be the same as the directory of the
rc file. Furthermore, MSVC rc supports a /I option, and can
also look in the system environment. This patch adds support
for this search algorithm.
Differential Revision: https://reviews.llvm.org/D38740
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-rc/ResourceScriptParser.h')
-rw-r--r-- | tools/llvm-rc/ResourceScriptParser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/llvm-rc/ResourceScriptParser.h b/tools/llvm-rc/ResourceScriptParser.h index 1a124d4ee2e..84fdfd5a586 100644 --- a/tools/llvm-rc/ResourceScriptParser.h +++ b/tools/llvm-rc/ResourceScriptParser.h @@ -25,6 +25,9 @@ #include <vector> namespace llvm { +namespace opt { +class InputArgList; +} namespace rc { class RCParser { @@ -51,7 +54,7 @@ public: LocIter ErrorLoc, FileEnd; }; - RCParser(std::vector<RCToken> TokenList); + explicit RCParser(std::vector<RCToken> TokenList); // Reads and returns a single resource definition, or error message if any // occurred. |