mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +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:
@ -29,7 +29,7 @@ void AddressPool::emit(AsmPrinter &Asm, const MCSection *AddrSection) {
|
||||
return;
|
||||
|
||||
// Start the dwarf addr section.
|
||||
Asm.OutStreamer.SwitchSection(AddrSection);
|
||||
Asm.OutStreamer->SwitchSection(AddrSection);
|
||||
|
||||
// Order the address pool entries by ID
|
||||
SmallVector<const MCExpr *, 64> Entries(Pool.size());
|
||||
@ -41,5 +41,5 @@ void AddressPool::emit(AsmPrinter &Asm, const MCSection *AddrSection) {
|
||||
: MCSymbolRefExpr::Create(I.first, Asm.OutContext);
|
||||
|
||||
for (const MCExpr *Entry : Entries)
|
||||
Asm.OutStreamer.EmitValue(Entry, Asm.getDataLayout().getPointerSize());
|
||||
Asm.OutStreamer->EmitValue(Entry, Asm.getDataLayout().getPointerSize());
|
||||
}
|
||||
|
Reference in New Issue
Block a user