Small cleanups.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131120 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp
index c55a964..cfd68c1 100644
--- a/lib/MC/MCDwarf.cpp
+++ b/lib/MC/MCDwarf.cpp
@@ -629,8 +629,6 @@
                                           unsigned lsdaEncoding) {
   MCContext &context = streamer.getContext();
   const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
-  const MCSection &section = *asmInfo.getEHFrameSection();
-  streamer.SwitchSection(&section);
 
   MCSymbol *sectionStart;
   if (asmInfo.isFunctionEHFrameSymbolPrivate())
@@ -683,9 +681,8 @@
     // Personality
     augmentationLength += getSizeForEncoding(streamer, personalityEncoding);
   }
-  if (lsda) {
+  if (lsda)
     augmentationLength += 1;
-  }
   // Encoding of the FDE pointers
   augmentationLength += 1;
 
@@ -698,10 +695,8 @@
     // Personality
     EmitPersonality(streamer, *personality, personalityEncoding);
   }
-  if (lsda) {
-    // LSDA Encoding
-    streamer.EmitIntValue(lsdaEncoding, 1);
-  }
+  if (lsda)
+    streamer.EmitIntValue(lsdaEncoding, 1); // LSDA Encoding
   // Encoding of the FDE pointers
   streamer.EmitIntValue(asmInfo.getFDEEncoding(UsingCFI), 1);
 
@@ -831,6 +826,8 @@
                                bool usingCFI) {
   const MCContext &context = streamer.getContext();
   const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
+  const MCSection &section = *asmInfo.getEHFrameSection();
+  streamer.SwitchSection(&section);
 
   MCSymbol *fdeEnd = NULL;
   DenseMap<CIEKey, const MCSymbol*> CIEStarts;