diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-28 06:06:50 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-28 06:06:50 +0000 |
commit | 761e42fa3dd72d9186a5b073bf3b096fd4c27996 (patch) | |
tree | 706831e57d3a2b0ce74541dd34a213a8bcb23135 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5cee232be4d4b41453806298054269bcc3b0ddda (diff) | |
download | bcm5719-llvm-761e42fa3dd72d9186a5b073bf3b096fd4c27996.tar.gz bcm5719-llvm-761e42fa3dd72d9186a5b073bf3b096fd4c27996.zip |
Add __libcpp_version file and __libcpp_library_version function.
This patch does two seperate things. First it adds a file called
"__libcpp_version" which only contains the current libc++ version
(currently 4000). This file is not intended for use as a header. This file
is used by Clang in order to easily determine the installed libc++ version.
This allows Clang to enable/disable certain language features only when the
library supports them.
The second change is the addition of _LIBCPP_LIBRARY_VERSION macro, which
returns the version of the installed dylib since it may be different than
the headers.
llvm-svn: 285382
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions