summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/builtin-source-location.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reapply: LLVM IR: update Clang tests for byval being a typed attribute.Tim Northover2019-05-301-2/+2
| | | | | | | | | | Since byval is now a typed attribute it gets sorted slightly differently by LLVM when the order of attributes is being canonicalized. This updates the few Clang tests that depend on the old order. Clang patch is unchanged. llvm-svn: 362129
* Revert "LLVM IR: update Clang tests for byval being a typed attribute."Tim Northover2019-05-291-2/+2
| | | | | | The underlying LLVM change couldn't cope with llvm-link and broke LTO builds. llvm-svn: 362028
* LLVM IR: update Clang tests for byval being a typed attribute.Tim Northover2019-05-291-2/+2
| | | | | | | | Since byval is now a typed attribute it gets sorted slightly differently by LLVM when the order of attributes is being canonicalized. This updates the few Clang tests that depend on the old order. llvm-svn: 362013
* Fix PCC test failures for source location builtinsEric Fiselier2019-05-161-1/+1
| | | | llvm-svn: 360943
* Implement __builtin_LINE() et. al. to support source location capture.Eric Fiselier2019-05-161-0/+268
Summary: This patch implements the source location builtins `__builtin_LINE(), `__builtin_FUNCTION()`, `__builtin_FILE()` and `__builtin_COLUMN()`. These builtins are needed to implement [`std::experimental::source_location`](https://rawgit.com/cplusplus/fundamentals-ts/v2/main.html#reflection.src_loc.creation). With the exception of `__builtin_COLUMN`, GCC also implements these builtins, and Clangs behavior is intended to match as closely as possible. Reviewers: rsmith, joerg, aaron.ballman, bogner, majnemer, shafik, martong Reviewed By: rsmith Subscribers: rnkovacs, loskutov, riccibruno, mgorny, kunitoki, alexr, majnemer, hfinkel, cfe-commits Differential Revision: https://reviews.llvm.org/D37035 llvm-svn: 360937
OpenPOWER on IntegriCloud