diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-11-21 00:23:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-11-21 00:23:19 +0000 |
commit | b961d29bfd17c9864f9a515f86571062b836b168 (patch) | |
tree | 4547aec284b1117775afe53f2aa0e26680a74a9e /llvm/tools/llvm-rc/ResourceScriptParser.cpp | |
parent | 62b076325a0f28b601e36fca84215afe948bb579 (diff) | |
download | bcm5719-llvm-b961d29bfd17c9864f9a515f86571062b836b168.tar.gz bcm5719-llvm-b961d29bfd17c9864f9a515f86571062b836b168.zip |
llvm-rc/ResourceScriptTokenList.h: Turns this into a .def file to imply that it's non-modular
Also undef the macros at the end of the file to make it easier to use.
llvm-svn: 318714
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptParser.cpp')
-rw-r--r-- | llvm/tools/llvm-rc/ResourceScriptParser.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptParser.cpp b/llvm/tools/llvm-rc/ResourceScriptParser.cpp index 769b47a20bd..cf1579ee2a1 100644 --- a/llvm/tools/llvm-rc/ResourceScriptParser.cpp +++ b/llvm/tools/llvm-rc/ResourceScriptParser.cpp @@ -245,9 +245,7 @@ Error RCParser::consumeType(Kind TokenKind) { #define SHORT_TOKEN(TokenName, TokenCh) \ case Kind::TokenName: \ return getExpectedError(#TokenCh); -#include "ResourceScriptTokenList.h" -#undef SHORT_TOKEN -#undef TOKEN +#include "ResourceScriptTokenList.def" } llvm_unreachable("All case options exhausted."); |