summaryrefslogtreecommitdiff
path: root/tools/llvm-rc/ResourceScriptParser.h
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-05-08 08:47:37 +0000
committerMartin Storsjo <martin@martin.st>2018-05-08 08:47:37 +0000
commit76e573dd1340a903e5782028a30da698c5d0efbe (patch)
tree6225543e4d6251e2483fc0be1bb868f5a8813df4 /tools/llvm-rc/ResourceScriptParser.h
parentaa4eef7aaba505f5a9df48075b2760bddaff244a (diff)
[llvm-rc] Don't strictly require quotes around external file names
Regardless of what docs may say, existing resource files in the wild can use this syntax. Rename a file used in an existing test, to make it usable for unquoted paths. Differential Revision: https://reviews.llvm.org/D46511 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-rc/ResourceScriptParser.h')
-rw-r--r--tools/llvm-rc/ResourceScriptParser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-rc/ResourceScriptParser.h b/tools/llvm-rc/ResourceScriptParser.h
index e22619a5834..639ef63863c 100644
--- a/tools/llvm-rc/ResourceScriptParser.h
+++ b/tools/llvm-rc/ResourceScriptParser.h
@@ -84,6 +84,7 @@ private:
Expected<RCInt> readInt(); // Parse an integer.
Expected<StringRef> readString(); // Parse a string.
Expected<StringRef> readIdentifier(); // Parse an identifier.
+ Expected<StringRef> readFilename(); // Parse a filename.
Expected<IntOrString> readIntOrString(); // Parse an integer or a string.
Expected<IntOrString> readTypeOrName(); // Parse an integer or an identifier.