[ORC] Replace some more 'auto' uses with std::error_code.
[oota-llvm.git] / include / llvm / Analysis / GlobalsModRef.h
index 3b3779c9f4589194f36fe6dd08b460713b9cb730..bcd102e7ded2ad7b7b7e251a551b5fd2a0c9fff0 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 /// \file
-/// This is the interface for a simple mod/ref and alias analysis over globlas.
+/// This is the interface for a simple mod/ref and alias analysis over globals.
 ///
 //===----------------------------------------------------------------------===//
 
@@ -54,7 +54,7 @@ class GlobalsAAResult : public AAResultBase<GlobalsAAResult> {
   /// ID that is only useful for comparing for equality (are two functions
   /// in the same SCC or not?)
   DenseMap<const Function *, unsigned> FunctionToSCCMap;
-  
+
   /// Handle to clear this analysis on deletion of values.
   struct DeletionCallbackHandle final : CallbackVH {
     GlobalsAAResult *GAR;
@@ -107,9 +107,9 @@ private:
                             SmallPtrSetImpl<Function *> *Readers = nullptr,
                             SmallPtrSetImpl<Function *> *Writers = nullptr,
                             GlobalValue *OkayStoreDest = nullptr);
-  bool AnalyzeIndirectGlobalMemory(GlobalValue *GV);
+  bool AnalyzeIndirectGlobalMemory(GlobalVariable *GV);
   void CollectSCCMembership(CallGraph &CG);
-  
+
   bool isNonEscapingGlobalNoAlias(const GlobalValue *GV, const Value *V);
   ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS,
                                       const GlobalValue *GV);