Make DataLayout Non-Optional in the Module
[oota-llvm.git] / lib / Analysis / LibCallAliasAnalysis.cpp
index 016f8c5cc7932d5a594eb29e452cdfa1b31907c4..f6025e3252e342a88fde192a119bba6abe2c7e0f 100644 (file)
@@ -36,7 +36,11 @@ void LibCallAliasAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
   AU.setPreservesAll();                         // Does not transform code
 }
 
-
+bool LibCallAliasAnalysis::runOnFunction(Function &F) {
+  // set up super class
+  InitializeAliasAnalysis(this, &F.getParent()->getDataLayout());
+  return false;
+}
 
 /// AnalyzeLibCallDetails - Given a call to a function with the specified
 /// LibCallFunctionInfo, see if we can improve the mod/ref footprint of the call