Syndicate duplicate code between CallInst and InvokeInst
authorSerge Guelton <sguelton@quarkslab.com>
Thu, 22 Feb 2018 13:30:32 +0000 (13:30 +0000)
committerSerge Guelton <sguelton@quarkslab.com>
Thu, 22 Feb 2018 13:30:32 +0000 (13:30 +0000)
commit1fb81bcb9bb4ba5571b24847713894623e67a926
treefd55a8776b3e2c4fa930de37458e3c314812aa7c
parent753c0d20f7473ab778d8bc479c791c2a88eb86db
Syndicate duplicate code between CallInst and InvokeInst

NFC intended, syndicate common code to a parametric base class. Part of the original problem is that InvokeInst is a TerminatorInst, unlike CallInst. the problem is solved by introducing a parametrized class paramtertized by its base.

Differential Revision: https://reviews.llvm.org/D40727

llvm-svn: 325778
llvm/include/llvm/IR/Instructions.h
llvm/lib/IR/Instructions.cpp