Refactor function that checks that __builtin_returnaddress's argument is constant.
authorBill Wendling <isanbard@gmail.com>
Mon, 6 Jan 2014 00:43:20 +0000 (00:43 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 6 Jan 2014 00:43:20 +0000 (00:43 +0000)
commit4644d79871d5c337608dff99816ddbdc40cb1175
treec48572a9ed99ae6272ea444c0430eacf984e9b69
parent7f1068198534f563fa7640056ec1d595e6662c09
Refactor function that checks that __builtin_returnaddress's argument is constant.

This moves the check up into the parent class so that all targets can use it
without having to copy (and keep in sync) the same error message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198579 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/Hexagon/HexagonISelLowering.cpp
lib/Target/MSP430/MSP430ISelLowering.cpp
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp