This improves the current llvm-rc parser by the ability of parsing ACCELERATORS statement.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/tools/llvm-rc/ResourceScriptParser.cpp | ||
---|---|---|
127 | no else after return |
llvm/tools/llvm-rc/ResourceScriptParser.cpp | ||
---|---|---|
127 | Actually it looks like IntOrString has a constructor taking a Token, but currently isn't used anywhere and has no implementation. Is this intended and if so you could use this constructor instead of having if block? |
llvm/tools/llvm-rc/ResourceScriptParser.cpp | ||
---|---|---|
127 | No, this was not intended. I remember writing it to support this method and the one below (readTypeOrName). I'll fix it in a moment. |
llvm/tools/llvm-rc/ResourceScriptParser.h | ||
---|---|---|
106 | I'd recommend ArrayRef<StringRef> here. Then callers of parseFlags don't need to pass NumFlags separately. |
I'd recommend ArrayRef<StringRef> here. Then callers of parseFlags don't need to pass NumFlags separately.