Add proper getAnalysisUsage() implementations to each Pass.
Change-Id: I2db9201dbfe5e8d705a873212f1f69f1fb7b5c20
diff --git a/lib/Renderscript/RSEmbedInfo.cpp b/lib/Renderscript/RSEmbedInfo.cpp
index 06fe547..fdcaaaf 100644
--- a/lib/Renderscript/RSEmbedInfo.cpp
+++ b/lib/Renderscript/RSEmbedInfo.cpp
@@ -57,6 +57,10 @@
M(nullptr) {
}
+ virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const override {
+ AU.setPreservesAll();
+ }
+
static std::string getRSInfoString(const llvm::Module *module) {
std::string str;
llvm::raw_string_ostream s(str);