diff options
| author | Shoaib Meenai <smeenai@fb.com> | 2017-04-13 20:13:32 +0000 |
|---|---|---|
| committer | Shoaib Meenai <smeenai@fb.com> | 2017-04-13 20:13:32 +0000 |
| commit | 461764de0d108aaab930df655ce7473ec9cba316 (patch) | |
| tree | 7d7c87e613e65a2e8ad0c0866460dd2816bc9fae /llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp | |
| parent | 3e2576a768d6e606ca51c14d8e6848b409fb5d0e (diff) | |
| download | bcm5719-llvm-461764de0d108aaab930df655ce7473ec9cba316.tar.gz bcm5719-llvm-461764de0d108aaab930df655ce7473ec9cba316.zip | |
[libc++] Add _LIBCPP_DISABLE_EXTERN_TEMPLATE config option
When the libc++ extern template macros were added, the intent was for it
to be possible for consumers of the headers to disable extern templates
(via `-D_LIBCPP_EXTERN_TEMPLATE(...)=`). Unfortunately, support for
specifying function-like macros varies on the command line varies across
compilers (e.g. MSVC doesn't support it at all), and cmake doesn't allow
it for the same reason. Add a non-function macro for this purpose.
The intended use is for libraries which want to use the libc++ headers
without taking a dependency on the libc++ library itself. I can name the
macro something which reflects its intent rather than its behavior (e.g.
`_LIBCPP_HEADER_ONLY`) if desired.
Differential Revision: https://reviews.llvm.org/D31725
llvm-svn: 300246
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp')
0 files changed, 0 insertions, 0 deletions

