[PATCH] D61888: TableGen: support #ifndef in addition to #ifdef

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 05:26:30 PDT 2019


t.p.northover created this revision.
Herald added subscribers: hiraditya, mcrosier.
Herald added a project: LLVM.

TableGen's preprocessor currently only supports #ifdef, but we have a situation where #ifndef would be more convenient. So this patch adds support.


Repository:
  rL LLVM

https://reviews.llvm.org/D61888

Files:
  llvm/lib/TableGen/TGLexer.cpp
  llvm/lib/TableGen/TGLexer.h
  llvm/test/TableGen/prep-diag5.td
  llvm/test/TableGen/prep-ifndef-diag-1.td
  llvm/test/TableGen/prep-ifndef-diag-2.td
  llvm/test/TableGen/prep-ifndef.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61888.199407.patch
Type: text/x-patch
Size: 3951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190514/8cfb209c/attachment.bin>


More information about the llvm-commits mailing list