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)
commit908bf814e7ffdeaf857bf03b6f3d26bced4e7ea8
tree19cdb6e3cc37c77b2e8b05903780a8d547f72a5b
parentf7fa730e616c3411cb43a4432a8db5c56d4d9668
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.

llvm-svn: 198579
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
llvm/lib/Target/Mips/MipsISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp