MC: Make sure to clear *all* of MCMachOStreamer's state
authorJustin Bogner <mail@justinbogner.com>
Thu, 3 Dec 2015 00:52:20 +0000 (00:52 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 3 Dec 2015 00:52:20 +0000 (00:52 +0000)
The CreatedADWARFSection flag was added in r232842, but isn't cleared
properly when resetting the streamer's state. Fix that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254571 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCMachOStreamer.cpp

index 52ecf9f..21f7571 100644 (file)
@@ -60,6 +60,7 @@ public:
 
   /// state management
   void reset() override {
+    CreatedADWARFSection = false;
     HasSectionLabel.clear();
     MCObjectStreamer::reset();
   }