OSDN Git Service

Remove sw::Value, sw::BasicBlock, and sw::SwitchCases
authorLogan Chien <loganchien@google.com>
Fri, 31 Aug 2018 08:57:15 +0000 (16:57 +0800)
committerLogan Chien <loganchien@google.com>
Tue, 11 Sep 2018 12:26:15 +0000 (12:26 +0000)
commit191b305db64c0b4f6f24bacbc6e01f0264d94480
tree6659f5ea6b788d68cc89cf67ad49e3bba07e6741
parent3d27ee3ab089228d24249a788b8b4d25d47d1b20
Remove sw::Value, sw::BasicBlock, and sw::SwitchCases

This commit removes `sw::Value`, `sw::BasicBlock`, and
`sw::SwitchCases`.  In LLVM 7.0, `llvm::Value`, `llvm::BasicBlock`, and
`llvm::SwitchCases` become final classes, thus we cannot derive from
those classes.  Fortunately, we don't have to derive from them.  We can
explicitly cast the pointers instead.

Change-Id: I2dc74485ebf4b399f8a41bb8fa94b7d8d299009e
Reviewed-on: https://swiftshader-review.googlesource.com/20469
Tested-by: Logan Chien <loganchien@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Reactor/LLVMReactor.cpp