summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-04-24 19:11:51 +0000
committerLang Hames <lhames@gmail.com>2015-04-24 19:11:51 +0000
commit9ff69c8f4de60cfe4d832247a720b936183c08e5 (patch)
tree187affe30650a751b2e08d5a95b16963d819ef13 /llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
parentb597408da49548c0a971d548132eb80b01ce58b0 (diff)
downloadbcm5719-llvm-9ff69c8f4de60cfe4d832247a720b936183c08e5.tar.gz
bcm5719-llvm-9ff69c8f4de60cfe4d832247a720b936183c08e5.zip
[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. llvm-svn: 235752
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
index 29a163b8f06..50dbb41c07c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
@@ -51,7 +51,7 @@ void DwarfFile::emitUnits(bool UseOffsets) {
for (const auto &TheU : CUs) {
DIE &Die = TheU->getUnitDie();
const MCSection *USection = TheU->getSection();
- Asm->OutStreamer.SwitchSection(USection);
+ Asm->OutStreamer->SwitchSection(USection);
TheU->emitHeader(UseOffsets);
@@ -124,7 +124,7 @@ void DwarfFile::emitAbbrevs(const MCSection *Section) {
// Check to see if it is worth the effort.
if (!Abbreviations.empty()) {
// Start the debug abbrev section.
- Asm->OutStreamer.SwitchSection(Section);
+ Asm->OutStreamer->SwitchSection(Section);
Asm->emitDwarfAbbrevs(Abbreviations);
}
}
OpenPOWER on IntegriCloud