diff options
author | Eric Fiselier <eric@efcs.ca> | 2019-05-16 21:04:15 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2019-05-16 21:04:15 +0000 |
commit | 708afb56c125ca4f7db7070e836860076c7eafbc (patch) | |
tree | 3dee8820f6b797ab01e7621f7eab44a615fced41 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | e7b680478c8e15e92af6706da0edaeab8708e49e (diff) | |
download | llvm-708afb56c125ca4f7db7070e836860076c7eafbc.zip llvm-708afb56c125ca4f7db7070e836860076c7eafbc.tar.gz llvm-708afb56c125ca4f7db7070e836860076c7eafbc.tar.bz2 |
Implement __builtin_LINE() et. al. to support source location capture.
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions