[IR] Move optional data in llvm::Function into a hungoff uselist
authorVedant Kumar <vsk@apple.com>
Sat, 19 Dec 2015 07:08:56 +0000 (07:08 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 19 Dec 2015 07:08:56 +0000 (07:08 +0000)
commit638b75bca2096456dce341ddc159d038c7e94712
treeb6428655e4674b2f31692021aedfcc823722f799
parentbf9cc1bd9344ccc86e1f8173811c5d37edca8cdb
[IR] Move optional data in llvm::Function into a hungoff uselist

Make personality functions, prefix data, and prologue data hungoff
operands of Function.

This is based on the email thread "[RFC] Clean up the way we store
optional Function data" on llvm-dev.

Thanks to sanjoyd, majnemer, rnk, loladiro, and dexonsmith for feedback!

Differential Revision: http://reviews.llvm.org/D13829

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256090 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
include/llvm/IR/User.h
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/IR/AsmWriter.cpp
lib/IR/Function.cpp
lib/IR/LLVMContextImpl.h
lib/IR/TypeFinder.cpp
lib/Transforms/IPO/GlobalDCE.cpp