add some accessors to callsite/callinst/invokeinst to check
authorChris Lattner <sabre@nondot.org>
Tue, 23 Mar 2010 22:59:07 +0000 (22:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Mar 2010 22:59:07 +0000 (22:59 +0000)
commita54934ae9d278448fb557366eb4a79a8cb3fc606
tree840df7c6eee7773d11a40219125eccd77714da57
parentbc7a902713c4e3f13a93c383e647d2a18712f447
add some accessors to callsite/callinst/invokeinst to check
for the noinline attribute, and make the inliner refuse to
inline a call site when the call site is marked noinline even
if the callee isn't.  This fixes PR6682.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99341 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
include/llvm/Support/CallSite.h
lib/Transforms/Utils/InlineFunction.cpp
lib/VMCore/Instructions.cpp
test/Transforms/Inline/noinline.ll [new file with mode: 0644]