In WriteFunction(), write function-local metadata before we write the instructions...
authorVictor Hernandez <vhernandez@apple.com>
Thu, 14 Jan 2010 01:50:08 +0000 (01:50 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Thu, 14 Jan 2010 01:50:08 +0000 (01:50 +0000)
commit8ea5d4c5294ec0c9a7635afa8fc470fa4a041838
treea2b0047670ffed3cf3a098a6c4bb7bdb2e2036dc
parent559588b156611aaab33d8b46dc0575508a49da2b
In WriteFunction(), write function-local metadata before we write the instructions, so instruction's references to metadata are fully resolved by the time they get written.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93403 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp