summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commit136bd719f0711b7c08ea2b1cfe699c6f77026f73 (patch)
tree0d6cb6c9e5559686944cb48c880668e0490be147 /llvm/include
parentd52dddf02261ea1a5e3ab9f6c084569597ebca4d (diff)
downloadbcm5719-llvm-136bd719f0711b7c08ea2b1cfe699c6f77026f73.tar.gz
bcm5719-llvm-136bd719f0711b7c08ea2b1cfe699c6f77026f73.zip
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. llvm-svn: 72741
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/ConstantFolding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/ConstantFolding.h b/llvm/include/llvm/Analysis/ConstantFolding.h
index bf360f7e884..5fdf6d2c916 100644
--- a/llvm/include/llvm/Analysis/ConstantFolding.h
+++ b/llvm/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,
OpenPOWER on IntegriCloud