diff options
author | Philip Reames <listmail@philipreames.com> | 2015-09-02 22:30:53 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2015-09-02 22:30:53 +0000 |
commit | b3967cd08eaaf2c112afbb496bab5e68d7040631 (patch) | |
tree | 4b17087c90b4e23e8d9e0b0d07c64f04f4826187 /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | |
parent | 7fe2469150ea99b806d136b45b7f536c23bca681 (diff) | |
download | bcm5719-llvm-b3967cd08eaaf2c112afbb496bab5e68d7040631.tar.gz bcm5719-llvm-b3967cd08eaaf2c112afbb496bab5e68d7040631.zip |
[RewriteStatepointsForGC] Pull a function out of anon namespace [NFC]
Thanks to David Blaikie for noticing in previous commit.
llvm-svn: 246721
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 7563cea9a04..929a4eb3968 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -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 |