TableGen's preprocessor currently only supports #ifdef, but we have a situation where #ifndef would be more convenient. So this patch adds support.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D61888
TableGen: support #ifndef in addition to #ifdef ClosedPublic Authored by t.p.northover on May 14 2019, 5:24 AM.
Details
Summary TableGen's preprocessor currently only supports #ifdef, but we have a situation where #ifndef would be more convenient. So this patch adds support.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 14 2019, 5:55 AM
Revision Contents
Diff 199407 llvm/lib/TableGen/TGLexer.h
llvm/lib/TableGen/TGLexer.cpp
llvm/test/TableGen/prep-diag5.td
llvm/test/TableGen/prep-ifndef-diag-1.td
|