diff options
author | Hendrik Greving <hgreving@google.com> | 2020-11-11 17:56:14 -0800 |
---|---|---|
committer | Hendrik Greving <hgreving@google.com> | 2020-11-30 20:28:13 -0800 |
commit | d4ba5e15f4f2f41f13625cc10e4df74b44620803 (patch) | |
tree | 4c97b890ea5529867a1202aa633455cbc1ac6d9b /llvm/lib/IR/Module.cpp | |
parent | 173bb3c2eb094920708ab8f61dae2fe22d331773 (diff) | |
download | llvm-d4ba5e15f4f2f41f13625cc10e4df74b44620803.zip llvm-d4ba5e15f4f2f41f13625cc10e4df74b44620803.tar.gz llvm-d4ba5e15f4f2f41f13625cc10e4df74b44620803.tar.bz2 |
Add MachineModuleInfo constructor with external MCContext
Adds a constructor to MachineModuleInfo and MachineModuleInfoWapperPass that
takes an external MCContext. If provided, the external context will be used
throughout codegen instead of MMI's default one.
This enables external drivers to take ownership of data put on the MMI's context
during codegen. The internal context is used otherwise and destroyed upon
finish.
Differential Revision: https://reviews.llvm.org/D91313
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions