| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Apply Jeffrey Yasskin's CallbackVH patch, with minor tweaks from me | Dan Gohman | 2009-05-02 | 1 | -1/+45 |
| | | | | | | | | to make the copy constructor and destructor protected, and corresponding adjustments to the unittests. llvm-svn: 70644 | ||||
| * | Add tests for WeakVH and AssertingVH. These pointed out that the overloads for | Jeffrey Yasskin | 2009-04-27 | 1 | -42/+2 |
| | | | | | | | | the comparison operators were not only unnecessary in the presence of the implicit conversion; they caused ambiguous overload errors. So I deleted them. llvm-svn: 70243 | ||||
| * | Fix missing text in doxygen documentation. | Nick Lewycky | 2009-04-19 | 1 | -1/+1 |
| | | | | | llvm-svn: 69529 | ||||
| * | Work around an apparent GCC miscompilation by specializing different, | Chris Lattner | 2009-04-03 | 1 | -0/+12 |
| | | | | | | | this fixes a regression on some compilers from r68147. llvm-svn: 68356 | ||||
| * | add missing * | Chris Lattner | 2009-04-02 | 1 | -2/+2 |
| | | | | | llvm-svn: 68350 | ||||
| * | add a converting operator | Chris Lattner | 2009-03-31 | 1 | -0/+3 |
| | | | | | llvm-svn: 68158 | ||||
| * | Add two new classes: WeakVH and AssertingVH. These are both "ValueHandles", | Chris Lattner | 2009-03-31 | 1 | -0/+217 |
| which are effectively smart pointers to Value*'s. They are both very light weight and simple, and react to values being destroyed or being RAUW'd. WeakVN does a best effort to follow a value around, including through RAUW operations and will get nulled out of the value is destroyed. This is useful for the eventual "metadata that references a value" work, because it is a reference to a value that does not show up on its use_* list. AssertingVH is a pointer that compiles down to a dumb raw pointer when assertions are disabled. When enabled, it emits an assertion if the pointed-to value is destroyed while it is still being referenced. This is very useful for Maps and other things, and should have caught the recent bugs in CallGraph and Reassociate, for example. llvm-svn: 68149 | |||||

