diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-06 04:27:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-06 04:27:31 +0000 |
commit | 7b550ccfc5a3346c17e0390a59e2d6d19bc52705 (patch) | |
tree | 9c3af8482a1eab3d262715e590726e5acf675951 /include/llvm/Support | |
parent | 6580da4755cf98aa9b0c32186536e80d7dd41f90 (diff) | |
download | external_llvm-7b550ccfc5a3346c17e0390a59e2d6d19bc52705.zip external_llvm-7b550ccfc5a3346c17e0390a59e2d6d19bc52705.tar.gz external_llvm-7b550ccfc5a3346c17e0390a59e2d6d19bc52705.tar.bz2 |
remove a bunch of extraneous LLVMContext arguments
from various APIs, addressing PR5325.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/TargetFolder.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/TargetFolder.h b/include/llvm/Support/TargetFolder.h index 18726e2..a4b7d12 100644 --- a/include/llvm/Support/TargetFolder.h +++ b/include/llvm/Support/TargetFolder.h @@ -26,24 +26,22 @@ namespace llvm { class TargetData; -class LLVMContext; /// TargetFolder - Create constants with target dependent folding. class TargetFolder { const TargetData *TD; - LLVMContext &Context; /// Fold - Fold the constant using target specific information. Constant *Fold(Constant *C) const { if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) - if (Constant *CF = ConstantFoldConstantExpression(CE, Context, TD)) + if (Constant *CF = ConstantFoldConstantExpression(CE, TD)) return CF; return C; } public: explicit TargetFolder(const TargetData *TheTD, LLVMContext &C) : - TD(TheTD), Context(C) {} + TD(TheTD) {} //===--------------------------------------------------------------------===// // Binary Operators |