summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceScriptToken.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-11-21 00:23:19 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-11-21 00:23:19 +0000
commitb961d29bfd17c9864f9a515f86571062b836b168 (patch)
tree4547aec284b1117775afe53f2aa0e26680a74a9e /llvm/tools/llvm-rc/ResourceScriptToken.cpp
parent62b076325a0f28b601e36fca84215afe948bb579 (diff)
downloadbcm5719-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/ResourceScriptToken.cpp')
-rw-r--r--llvm/tools/llvm-rc/ResourceScriptToken.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/tools/llvm-rc/ResourceScriptToken.cpp b/llvm/tools/llvm-rc/ResourceScriptToken.cpp
index 5a3473a4b08..7bbf0d16f04 100644
--- a/llvm/tools/llvm-rc/ResourceScriptToken.cpp
+++ b/llvm/tools/llvm-rc/ResourceScriptToken.cpp
@@ -212,9 +212,7 @@ Error Tokenizer::consumeToken(const Kind TokenKind) {
// One-character token consumption.
#define TOKEN(Name)
#define SHORT_TOKEN(Name, Ch) case Kind::Name:
-#include "ResourceScriptTokenList.h"
-#undef TOKEN
-#undef SHORT_TOKEN
+#include "ResourceScriptTokenList.def"
advance();
return Error::success();
@@ -340,9 +338,7 @@ Kind Tokenizer::classifyCurrentToken() const {
#define SHORT_TOKEN(Name, Ch) \
case Ch: \
return Kind::Name;
-#include "ResourceScriptTokenList.h"
-#undef TOKEN
-#undef SHORT_TOKEN
+#include "ResourceScriptTokenList.def"
default:
return Kind::Invalid;
OpenPOWER on IntegriCloud