Remove the code from Function::dropAllReferences which replaced
authorDan Gohman <gohman@apple.com>
Tue, 7 Dec 2010 19:56:51 +0000 (19:56 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 7 Dec 2010 19:56:51 +0000 (19:56 +0000)
commita6399ae08967109b1427b34b5bde775a38bb4d75
tree16ec6ffd0434909902d5f705abd789e73f1e20d8
parent45258f570826bb4369042efa915a10248b4d7a42
Remove the code from Function::dropAllReferences which replaced
uses of the function's blocks with undef. This code isn't needed,
because BasicBlock's destructor handles such uses. Also, undef isn't
correct, since blockaddresses may still be used for comparisons
with null.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Function.cpp