OSDN Git Service

Switch the representation of the location in instruction from
authorChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2010 05:23:13 +0000 (05:23 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2010 05:23:13 +0000 (05:23 +0000)
commit61336ae001e07c6d68454b1494e45954d373fb51
tree3405e69a31ba002ace3432c8b1abd2dff10fff64
parentb45218f7c8c53ed77bc35563b2a300781be3cdd0
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100088 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instruction.h
lib/VMCore/Instruction.cpp
lib/VMCore/Metadata.cpp