From 145449b1e420787bb99721a429341fa6be3adfb6 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 3 Jul 2022 16:10:23 +0200 Subject: Vendor import of llvm-project main llvmorg-15-init-15358-g53dc0f107877. --- llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp') diff --git a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp index c7b73fd3b805..03141ecf551d 100644 --- a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp +++ b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp @@ -13,6 +13,7 @@ #include "TargetInfo/SystemZTargetInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCDwarf.h" +#include "llvm/MC/MCInst.h" #include "llvm/MC/MCInstrInfo.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/MC/MCStreamer.h" @@ -193,7 +194,7 @@ void SystemZTargetStreamer::emitConstantPools() { return; // Switch to the .text section. const MCObjectFileInfo &OFI = *Streamer.getContext().getObjectFileInfo(); - Streamer.SwitchSection(OFI.getTextSection()); + Streamer.switchSection(OFI.getTextSection()); for (auto &I : EXRLTargets2Sym) { Streamer.emitLabel(I.second); const MCInstSTIPair &MCI_STI = I.first; -- cgit v1.3