Make blockaddress(@func, null) be valid, and make 'deleting a basic
authorChris Lattner <sabre@nondot.org>
Sat, 31 Oct 2009 20:08:37 +0000 (20:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 Oct 2009 20:08:37 +0000 (20:08 +0000)
commit7d83ebcadd725d050cc58962e9b7c4312d676e7f
treeefdb3c359fa548ada932f522239be84ab602df20
parente3246fc6ab4ae7599fa1b7aa1b37107a843b2032
Make blockaddress(@func, null) be valid, and make 'deleting a basic
block with a blockaddress still referring to it' replace the invalid
blockaddress with a new blockaddress(@func, null) instead of a
inttoptr(1).

This changes the bitcode encoding format, and still needs codegen
support (this should produce a non-zero value, referring to the entry
block of the function would also be quite reasonable).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85678 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.html
include/llvm/Constants.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/BasicBlock.cpp
lib/VMCore/Constants.cpp