summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorPedro Artigas <partigas@apple.com>2012-12-12 22:59:46 +0000
committerPedro Artigas <partigas@apple.com>2012-12-12 22:59:46 +0000
commit7212ee4534066fa03d361763d5d7195c7a51c521 (patch)
tree68af377faa0f2e1f664086c10248fba3436629de /llvm/lib/CodeGen/AsmPrinter
parent1f7321677cebda7fd2bf0adf18afb910f098559f (diff)
downloadbcm5719-llvm-7212ee4534066fa03d361763d5d7195c7a51c521.tar.gz
bcm5719-llvm-7212ee4534066fa03d361763d5d7195c7a51c521.zip
Make the MCStreamer have a reset method and call that after finalization of the asm printer,
also changed MCContext to a single reset only method for simplicity as requested on the list llvm-svn: 170041
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 68ed280c551..475b82557dc 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -946,6 +946,8 @@ bool AsmPrinter::doFinalization(Module &M) {
MMI = 0;
OutStreamer.Finish();
+ OutStreamer.reset();
+
return false;
}
OpenPOWER on IntegriCloud