Change ConstantFoldConstantExpression to accept a null
authorDan Gohman <gohman@apple.com>
Tue, 2 Jun 2009 21:48:15 +0000 (21:48 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 2 Jun 2009 21:48:15 +0000 (21:48 +0000)
commit7714285efd2a7f4e503f0f600667193e63ee6d08
treec8c2337a78ffb65fb9401c45017780ed3a127c2c
parent014d53595c06a77d0f06f92ef8a7ab15e7e05c4a
Change ConstantFoldConstantExpression to accept a null
TargetData pointer. The only thing it's used for are
calls to ConstantFoldCompareInstOperands and
ConstantFoldInstOperands, which both already accept a
null TargetData pointer. This makes
ConstantFoldConstantExpression easier to use in clients
where TargetData is optional.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72741 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ConstantFolding.h
lib/Analysis/ConstantFolding.cpp