diff options
author | Pedro Artigas <partigas@apple.com> | 2012-12-12 22:59:46 +0000 |
---|---|---|
committer | Pedro Artigas <partigas@apple.com> | 2012-12-12 22:59:46 +0000 |
commit | 5399d2502acaf96fe8420e61913e77f0b23650ff (patch) | |
tree | 0a88b5a320500c2eeae8320ce4bd46014af30ef9 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 5749801caaf523e2e151eea4cacc87299a4b3822 (diff) | |
download | llvm-5399d2502acaf96fe8420e61913e77f0b23650ff.tar.gz llvm-5399d2502acaf96fe8420e61913e77f0b23650ff.tar.bz2 llvm-5399d2502acaf96fe8420e61913e77f0b23650ff.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 68ed280c55..475b82557d 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -946,6 +946,8 @@ bool AsmPrinter::doFinalization(Module &M) { MMI = 0; OutStreamer.Finish(); + OutStreamer.reset(); + return false; } |