Add a new "NewDebugLoc" class which will eventually replace DebugLoc,
authorChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2010 00:37:44 +0000 (00:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2010 00:37:44 +0000 (00:37 +0000)
commitb227925fa313428045f554187b0136d084d723f6
tree5b7ae32a91579be0fcec63a30360e360b402aaaf
parent1118b5e490717fc13895e1307a15eb663d3758d1
Add a new "NewDebugLoc" class which will eventually replace DebugLoc,
and will replace the 'DbgInfo' member in Instruction.

The benefit of NewDebugLoc is that it is compact (8 bytes vs 12/24
bytes for the DbgInfo member in Instruction on a 32/64 bit system),
it means that we will end up not having to allocate MDNodes to
represent the "DILocations" in common cases of -O0 -g, and it is
much more efficient to get things out of than the MDNode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100072 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/DebugLoc.h
lib/VMCore/DebugLoc.cpp [new file with mode: 0644]
lib/VMCore/LLVMContextImpl.h