[llvm-commits] [PATCH] Use AssertingVH for the GlobalValue maps
Chris Lattner
clattner at apple.com
Fri Aug 7 09:44:11 PDT 2009
On Aug 6, 2009, at 11:04 AM, jyasskin at gmail.com wrote:
> Reviewers: llvm-commits_cs.uiuc.edu,
>
> Description:
> To catch bugs like the one fixed in
> http://llvm.org/viewvc/llvm-project?view=rev&revision=78127, I'm
> changing the ExecutionEngine's global mappings to hold
> AssertingVH<const
> GlobalValue>. That way, if unregistering a mapping fails to actually
> unregister it, we'll get an assert. Running the jit nightly tests
> doesn't uncover any actual instances of the problem.
The patch looks ok, but please rename AsValue -> GetAsValue or
getAsValue. Also, please send diffs/patches so I don't have to click
through silly web apps :)
Thanks Jeffrey!
-Chris
>
> This also uncovered the fact that AssertingVH<const X> didn't work,
> so I
> fixed that too.
>
> Please review this at http://codereview.appspot.com/104054
>
> Affected files:
> M include/llvm/ExecutionEngine/ExecutionEngine.h
> M include/llvm/Support/ValueHandle.h
> M lib/ExecutionEngine/ExecutionEngine.cpp
> M unittests/Support/ValueHandleTest.cpp
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list