[all-commits] [llvm/llvm-project] d4ba5e: Add MachineModuleInfo constructor with external MC...
Hendrik Greving via All-commits
all-commits at lists.llvm.org
Mon Nov 30 20:33:17 PST 2020
Branch: refs/heads/temp-test-main
Home: https://github.com/llvm/llvm-project
Commit: d4ba5e15f4f2f41f13625cc10e4df74b44620803
https://github.com/llvm/llvm-project/commit/d4ba5e15f4f2f41f13625cc10e4df74b44620803
Author: Hendrik Greving <hgreving at google.com>
Date: 2020-11-30 (Mon, 30 Nov 2020)
Changed paths:
M llvm/include/llvm/CodeGen/MachineModuleInfo.h
M llvm/lib/CodeGen/MachineModuleInfo.cpp
Log Message:
-----------
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
More information about the All-commits
mailing list