diff options
| author | Warren Hunt <whunt@google.com> | 2013-11-01 23:46:51 +0000 |
|---|---|---|
| committer | Warren Hunt <whunt@google.com> | 2013-11-01 23:46:51 +0000 |
| commit | 2d023ecb2b9204a3dbc3b88ad9564b0a5bc211f6 (patch) | |
| tree | 67d024bc285c5f5862bc447030534b67795112c1 /lib/CodeGen/CGExpr.cpp | |
| parent | 701bc8ceb11c0090f61c1caa9d2efa9523006cc6 (diff) | |
| download | clang-2d023ecb2b9204a3dbc3b88ad9564b0a5bc211f6.tar.gz clang-2d023ecb2b9204a3dbc3b88ad9564b0a5bc211f6.tar.bz2 clang-2d023ecb2b9204a3dbc3b88ad9564b0a5bc211f6.tar.xz | |
Wraps lazily generated builtins in an extern "C" context
Differential Revision: http://llvm-reviews.chandlerc.com/D2082
Adds a lang_c LinkageSpecDecl to lazily generated builtins. This enforces correct
behavior for builtins in a variety of cases without special treatment elsewhere within
the compiler (special treatment is removed by the patch). It also allows for C++
overloads of builtin functions, which Microsoft uses in their headers e.g.
_InterlockedExchangeAdd is an extern C builtin for the long type but an inline wrapper
for int type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
