Disallow null as a named metadata operand.
authorDan Gohman <gohman@apple.com>
Wed, 21 Jul 2010 18:54:18 +0000 (18:54 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 21 Jul 2010 18:54:18 +0000 (18:54 +0000)
commit872814ae048df032bddf9299c850f5bda08299a9
tree8abc3d283bd51ea3430c80b7c69f84b8e6067010
parentec237ffd28f1408f524dc134220d8502e167f4d9
Disallow null as a named metadata operand.
Make MDNode::destroy private.
Fix the one thing that used MDNode::destroy, outside of MDNode itself.

One should never delete or destroy an MDNode explicitly. MDNodes
implicitly go away when there are no references to them (implementation
details aside).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109028 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.html
include/llvm/Analysis/DebugInfo.h
include/llvm/Metadata.h
lib/Analysis/DebugInfo.cpp
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/Metadata.cpp
test/Feature/NamedMDNode.ll