summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ConstantFolding.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-02 21:48:15 +0000
committerDan Gohman <gohman@apple.com>2009-06-02 21:48:15 +0000
commit7714285efd2a7f4e503f0f600667193e63ee6d08 (patch)
treec8c2337a78ffb65fb9401c45017780ed3a127c2c /include/llvm/Analysis/ConstantFolding.h
parent014d53595c06a77d0f06f92ef8a7ab15e7e05c4a (diff)
downloadllvm-7714285efd2a7f4e503f0f600667193e63ee6d08.tar.gz
llvm-7714285efd2a7f4e503f0f600667193e63ee6d08.tar.bz2
llvm-7714285efd2a7f4e503f0f600667193e63ee6d08.tar.xz
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
Diffstat (limited to 'include/llvm/Analysis/ConstantFolding.h')
-rw-r--r--include/llvm/Analysis/ConstantFolding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ConstantFolding.h b/include/llvm/Analysis/ConstantFolding.h
index bf360f7e88..5fdf6d2c91 100644
--- a/include/llvm/Analysis/ConstantFolding.h
+++ b/include/llvm/Analysis/ConstantFolding.h
@@ -34,7 +34,7 @@ Constant *ConstantFoldInstruction(Instruction *I, const TargetData *TD = 0);
/// using the specified TargetData. If successful, the constant result is
/// result is returned, if not, null is returned.
Constant *ConstantFoldConstantExpression(ConstantExpr *CE,
- const TargetData *TD);
+ const TargetData *TD = 0);
/// ConstantFoldInstOperands - Attempt to constant fold an instruction with the
/// specified operands. If successful, the constant result is returned, if not,