projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b9f79
)
[TableGen] Make behavior of getValueAsListOfStrings consistent with getValueAsString
author
Daniel Grumberg
<dany.grumberg@gmail.com>
Wed, 10 Jun 2020 17:05:10 +0000
(18:05 +0100)
committer
Daniel Grumberg
<dany.grumberg@gmail.com>
Fri, 12 Jun 2020 18:16:48 +0000
(19:16 +0100)
llvm/lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/TableGen/Record.cpp
b/llvm/lib/TableGen/Record.cpp
index
6f774e9
..
50df5da
100644
(file)
--- a/
llvm/lib/TableGen/Record.cpp
+++ b/
llvm/lib/TableGen/Record.cpp
@@
-2294,6
+2294,8
@@
Record::getValueAsListOfStrings(StringRef FieldName) const {
for (Init *I : List->getValues()) {
if (StringInit *SI = dyn_cast<StringInit>(I))
Strings.push_back(SI->getValue());
+ else if (CodeInit *CI = dyn_cast<CodeInit>(I))
+ Strings.push_back(CI->getValue());
else
PrintFatalError(getLoc(),
Twine("Record `") + getName() + "', field `" + FieldName +