[llvm-commits] [llvm] r100088 - in /llvm/trunk: include/llvm/Instruction.h lib/VMCore/Instruction.cpp lib/VMCore/Metadata.cpp

Chris Lattner clattner at apple.com
Wed Mar 31 23:06:58 PDT 2010


On Mar 31, 2010, at 10:23 PM, Chris Lattner wrote:

> Author: lattner
> Date: Thu Apr  1 00:23:13 2010
> New Revision: 100088
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=100088&view=rev
> Log:
> Switch the representation of the location in instruction from
> being a TrackingVH<MDNode> to a NewDebugLoc, shrinking 
> sizeof(Instruction) a lot, and providing clients the ability
> to deal with locations in terms of NewDebugLoc instead of
> having to deal with Metadata.  This is still fully compatible
> with all clients that *do* use MDNodes for everything of
> course.
> 
> No functionality change.

Actually, there is one functionality change with this: this causes various debug loc clients to do validation.  If given an invalid loc, it drops to null.

-Chris



More information about the llvm-commits mailing list