mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-02 05:17:15 +00:00
[AsmPrinter] Make AsmPrinter's OutStreamer member a unique_ptr.
AsmPrinter owns the OutStreamer, so an owning pointer makes sense here. Using a reference for this is crufty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -273,9 +273,9 @@ void StackMaps::recordStackMapOpers(const MachineInstr &MI, uint64_t ID,
|
||||
MachineInstr::const_mop_iterator MOE,
|
||||
bool recordResult) {
|
||||
|
||||
MCContext &OutContext = AP.OutStreamer.getContext();
|
||||
MCContext &OutContext = AP.OutStreamer->getContext();
|
||||
MCSymbol *MILabel = OutContext.CreateTempSymbol();
|
||||
AP.OutStreamer.EmitLabel(MILabel);
|
||||
AP.OutStreamer->EmitLabel(MILabel);
|
||||
|
||||
LocationVec Locations;
|
||||
LiveOutVec LiveOuts;
|
||||
@@ -521,8 +521,8 @@ void StackMaps::serializeToStackMapSection() {
|
||||
if (CSInfos.empty())
|
||||
return;
|
||||
|
||||
MCContext &OutContext = AP.OutStreamer.getContext();
|
||||
MCStreamer &OS = AP.OutStreamer;
|
||||
MCContext &OutContext = AP.OutStreamer->getContext();
|
||||
MCStreamer &OS = *AP.OutStreamer;
|
||||
|
||||
// Create the section.
|
||||
const MCSection *StackMapSection =
|
||||
|
Reference in New Issue
Block a user