Add a new function to ConstantExpr - getAsInstruction. This returns its Instruction...
authorJames Molloy <james.molloy@arm.com>
Sat, 17 Nov 2012 17:56:30 +0000 (17:56 +0000)
committerJames Molloy <james.molloy@arm.com>
Sat, 17 Nov 2012 17:56:30 +0000 (17:56 +0000)
commitb9478c2aef060aa6b0ede41c05859c34b1527bf8
tree4c896b2e5249460cc25c158c72a750cc4ad118f5
parent9e6ee16b1814268897965b81e82a74ef39173ee1
Add a new function to ConstantExpr - getAsInstruction. This returns its Instruction* corollary, which may be useful if a user
wishes to transform a ConstantExpr so that one of its operands is no longer constant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168262 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h
lib/VMCore/Constants.cpp
unittests/VMCore/ConstantsTest.cpp