simplify CallSite helper class to not consult the Instruction's
authorGabor Greif <ggreif@gmail.com>
Sun, 11 Jan 2009 22:33:22 +0000 (22:33 +0000)
committerGabor Greif <ggreif@gmail.com>
Sun, 11 Jan 2009 22:33:22 +0000 (22:33 +0000)
commit255b26ea3529ca096313c85dcf006565c7e916f9
tree12c5966bc59cd46bdd5e963520fb52e12e848d80
parente7886e461b1b1cea421caec6198cc700c2e8d67e
simplify CallSite helper class to not consult the Instruction's
opcode on each delegation.
Instead the information is cached on construction and the cached flag used thereafter.
Introduced two predicates: isCall and isInvoke.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62055 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CallSite.h
lib/VMCore/Instructions.cpp