[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 llvm-svn: 256090
Showing
- llvm/include/llvm/IR/Function.h 20 additions, 11 deletionsllvm/include/llvm/IR/Function.h
- llvm/include/llvm/IR/User.h 0 additions, 13 deletionsllvm/include/llvm/IR/User.h
- llvm/lib/Bitcode/Writer/ValueEnumerator.cpp 8 additions, 28 deletionsllvm/lib/Bitcode/Writer/ValueEnumerator.cpp
- llvm/lib/IR/AsmWriter.cpp 5 additions, 13 deletionsllvm/lib/IR/AsmWriter.cpp
- llvm/lib/IR/Function.cpp 54 additions, 76 deletionsllvm/lib/IR/Function.cpp
- llvm/lib/IR/LLVMContextImpl.h 0 additions, 11 deletionsllvm/lib/IR/LLVMContextImpl.h
- llvm/lib/IR/TypeFinder.cpp 2 additions, 8 deletionsllvm/lib/IR/TypeFinder.cpp
- llvm/lib/Transforms/IPO/GlobalDCE.cpp 2 additions, 8 deletionsllvm/lib/Transforms/IPO/GlobalDCE.cpp
Loading
Please register or sign in to comment