aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-14 17:22:45 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-14 17:22:45 +0000
commitaa5354c3ba93032dcc76e8c105575f31196084f1 (patch)
tree064669159cf12a17d1307ceff00e642011d46dfc /lib/Transforms/Utils
parent7c67d32a321898fe08c015300b9540f8ecaa3358 (diff)
downloadexternal_llvm-aa5354c3ba93032dcc76e8c105575f31196084f1.zip
external_llvm-aa5354c3ba93032dcc76e8c105575f31196084f1.tar.gz
external_llvm-aa5354c3ba93032dcc76e8c105575f31196084f1.tar.bz2
Make headers standalone, move a virtual method out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/SSAUpdater.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/SSAUpdater.cpp b/lib/Transforms/Utils/SSAUpdater.cpp
index fa8061c..e60a41b 100644
--- a/lib/Transforms/Utils/SSAUpdater.cpp
+++ b/lib/Transforms/Utils/SSAUpdater.cpp
@@ -518,3 +518,10 @@ run(const SmallVectorImpl<Instruction*> &Insts) const {
User->eraseFromParent();
}
}
+
+bool
+LoadAndStorePromoter::isInstInList(Instruction *I,
+ const SmallVectorImpl<Instruction*> &Insts)
+ const {
+ return std::find(Insts.begin(), Insts.end(), I) != Insts.end();
+}