[llvm] r254571 - MC: Make sure to clear *all* of MCMachOStreamer's state
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 16:52:21 PST 2015
Author: bogner
Date: Wed Dec 2 18:52:20 2015
New Revision: 254571
URL: http://llvm.org/viewvc/llvm-project?rev=254571&view=rev
Log:
MC: Make sure to clear *all* of MCMachOStreamer's state
The CreatedADWARFSection flag was added in r232842, but isn't cleared
properly when resetting the streamer's state. Fix that.
Modified:
llvm/trunk/lib/MC/MCMachOStreamer.cpp
Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=254571&r1=254570&r2=254571&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Wed Dec 2 18:52:20 2015
@@ -60,6 +60,7 @@ public:
/// state management
void reset() override {
+ CreatedADWARFSection = false;
HasSectionLabel.clear();
MCObjectStreamer::reset();
}
More information about the llvm-commits
mailing list