diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-26 15:35:35 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-26 15:35:35 +0000 |
commit | 3548ea8e905269e819fdd4c7fab42142b745c6c5 (patch) | |
tree | 10e110cbda235efd41cf7f7a5a0d219f1e613ff0 /include/llvm/Support/ConstantFolder.h | |
parent | 11eab02b770086c119a18aae0fe214fbe5eed0d0 (diff) |
For the NSWSub support in the builder to actually be useable,
there need to be corresponding changes to the constant folders,
done in this patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ConstantFolder.h')
-rw-r--r-- | include/llvm/Support/ConstantFolder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantFolder.h b/include/llvm/Support/ConstantFolder.h index 3c9278aaa7..99cb92078f 100644 --- a/include/llvm/Support/ConstantFolder.h +++ b/include/llvm/Support/ConstantFolder.h @@ -44,6 +44,9 @@ public: Constant *CreateSub(Constant *LHS, Constant *RHS) const { return ConstantExpr::getSub(LHS, RHS); } + Constant *CreateNSWSub(Constant *LHS, Constant *RHS) const { + return ConstantExpr::getNSWSub(LHS, RHS); + } Constant *CreateFSub(Constant *LHS, Constant *RHS) const { return ConstantExpr::getFSub(LHS, RHS); } |