[llvm] r246721 - [RewriteStatepointsForGC] Pull a function out of anon namespace [NFC]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 15:30:54 PDT 2015
Author: reames
Date: Wed Sep 2 17:30:53 2015
New Revision: 246721
URL: http://llvm.org/viewvc/llvm-project?rev=246721&view=rev
Log:
[RewriteStatepointsForGC] Pull a function out of anon namespace [NFC]
Thanks to David Blaikie for noticing in previous commit.
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=246721&r1=246720&r2=246721&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Wed Sep 2 17:30:53 2015
@@ -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
More information about the llvm-commits
mailing list