diff options
author | Marco Elver <elver@google.com> | 2022-09-06 15:48:41 +0200 |
---|---|---|
committer | Marco Elver <elver@google.com> | 2022-09-06 15:52:44 +0200 |
commit | 42836e283fc58d5cebbcbb2e8eb7619d92fb9c2d (patch) | |
tree | 11548affdf88abaec2dabced3769d71681e86751 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | c70f6e1362e38f36dceca0342490d659aa45a1a5 (diff) | |
download | llvm-42836e283fc58d5cebbcbb2e8eb7619d92fb9c2d.zip llvm-42836e283fc58d5cebbcbb2e8eb7619d92fb9c2d.tar.gz llvm-42836e283fc58d5cebbcbb2e8eb7619d92fb9c2d.tar.bz2 |
[MachineInstr] Allow setting PCSections in ExtraInfo
Provide MachineInstr::setPCSection(), to propagate relevant metadata
through the backend. Use ExtraInfo to store the metadata.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D130876
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 299eadb..26b20d96 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -530,10 +530,11 @@ MachineFunction::getMachineMemOperand(const MachineMemOperand *MMO, MachineInstr::ExtraInfo *MachineFunction::createMIExtraInfo( ArrayRef<MachineMemOperand *> MMOs, MCSymbol *PreInstrSymbol, - MCSymbol *PostInstrSymbol, MDNode *HeapAllocMarker, uint32_t CFIType) { + MCSymbol *PostInstrSymbol, MDNode *HeapAllocMarker, MDNode *PCSections, + uint32_t CFIType) { return MachineInstr::ExtraInfo::create(Allocator, MMOs, PreInstrSymbol, PostInstrSymbol, HeapAllocMarker, - CFIType); + PCSections, CFIType); } const char *MachineFunction::createExternalSymbolName(StringRef Name) { |