[AST] Move a function definition into the cpp [NFC]
authorPhilip Reames <listmail@philipreames.com>
Wed, 22 Aug 2018 03:32:52 +0000 (03:32 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 22 Aug 2018 03:32:52 +0000 (03:32 +0000)
llvm-svn: 340382

llvm/include/llvm/Analysis/AliasSetTracker.h
llvm/lib/Analysis/AliasSetTracker.cpp

index 372c66c..00dec71 100644 (file)
@@ -220,17 +220,7 @@ public:
 
   /// If this alias set is known to contain a single instruction and *only* a
   /// single unique instruction, return it.  Otherwise, return nullptr.
-  Instruction* getUniqueInstruction() {
-    if (size() != 0)
-      // Can't track source of pointer, might be many instruction
-      return nullptr;
-    if (AliasAny)
-      // May have collapses alias set
-      return nullptr;
-    if (1 != UnknownInsts.size())
-      return nullptr;
-    return cast<Instruction>(UnknownInsts[0]);
-  }
+  Instruction* getUniqueInstruction();
 
   void print(raw_ostream &OS) const;
   void dump() const;
index dc6ecd5..66fdf7f 100644 (file)
@@ -252,6 +252,18 @@ bool AliasSet::aliasesUnknownInst(const Instruction *Inst,
   return false;
 }
 
+Instruction* AliasSet::getUniqueInstruction() {
+  if (size() != 0)
+    // Can't track source of pointer, might be many instruction
+    return nullptr;
+  if (AliasAny)
+    // May have collapses alias set
+    return nullptr;
+ if (1 != UnknownInsts.size())
+    return nullptr;
+  return cast<Instruction>(UnknownInsts[0]);
+}
+
 void AliasSetTracker::clear() {
   // Delete all the PointerRec entries.
   for (PointerMapType::iterator I = PointerMap.begin(), E = PointerMap.end();