[RewriteStatepointsForGC] Pull a function out of anon namespace [NFC]
authorPhilip Reames <listmail@philipreames.com>
Wed, 2 Sep 2015 22:30:53 +0000 (22:30 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 2 Sep 2015 22:30:53 +0000 (22:30 +0000)
Thanks to David Blaikie for noticing in previous commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246721 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 7563cea9a0465f1a7309108d78e70f8fb5fe5033..929a4eb3968be1da4f06021af9beafdd07786d7e 100644 (file)
@@ -615,14 +615,16 @@ private:
   Status status;
   Value *base; // non null only if status == base
 };
+}
 
 #ifndef NDEBUG
-inline raw_ostream &operator<<(raw_ostream &OS, const BDVState &State) {
+static raw_ostream &operator<<(raw_ostream &OS, const BDVState &State) {
   State.print(OS);
   return OS;
 }
 #endif
 
+namespace {
 typedef DenseMap<Value *, BDVState> ConflictStateMapTy;
 // Values of type BDVState form a lattice, and this is a helper
 // class that implementes the meet operation.  The meat of the meet
@@ -680,6 +682,8 @@ private:
   }
 };
 }
+
+
 /// For a given value or instruction, figure out what base ptr it's derived
 /// from.  For gc objects, this is simply itself.  On success, returns a value
 /// which is the base pointer.  (This is reliable and can be used for