]> granicus.if.org Git - clang/commit
Attach attribute "trap-func-name" to call sites of llvm.trap and llvm.debugtrap.
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 2 Jul 2015 22:15:41 +0000 (22:15 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 2 Jul 2015 22:15:41 +0000 (22:15 +0000)
commitfad164855f6b08690557f15af722968fe169f0ec
tree6bf66920c034c97108307dc169eb94e6a17dbd7c
parent247b5bd74b436fbaa561813d730c6045a33f4eae
Attach attribute "trap-func-name" to call sites of llvm.trap and llvm.debugtrap.

This is needed to use clang's command line option "-ftrap-function" for LTO and
enable changing the trap function name on a per-call-site basis.

rdar://problem/21225723

Differential Revision: http://reviews.llvm.org/D10831

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/trap-fnattr.cpp [new file with mode: 0644]