diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-10 03:26:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-10 03:26:21 +0000 |
commit | 774466a8a5388d334b57053fbbfd22b547b729ed (patch) | |
tree | e08ab9484d10b7784ed554b12d689856fcf83a6e /lib/MC | |
parent | c25dad8750083829d9a8935ce40d0734e5488f8e (diff) | |
download | external_llvm-774466a8a5388d334b57053fbbfd22b547b729ed.zip external_llvm-774466a8a5388d334b57053fbbfd22b547b729ed.tar.gz external_llvm-774466a8a5388d334b57053fbbfd22b547b729ed.tar.bz2 |
Small cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCDwarf.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
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 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer, unsigned lsdaEncoding) { MCContext &context = streamer.getContext(); const TargetAsmInfo &asmInfo = context.getTargetAsmInfo(); - const MCSection §ion = *asmInfo.getEHFrameSection(); - streamer.SwitchSection(§ion); MCSymbol *sectionStart; if (asmInfo.isFunctionEHFrameSymbolPrivate()) @@ -683,9 +681,8 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer, // Personality augmentationLength += getSizeForEncoding(streamer, personalityEncoding); } - if (lsda) { + if (lsda) augmentationLength += 1; - } // Encoding of the FDE pointers augmentationLength += 1; @@ -698,10 +695,8 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer, // 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 @@ void MCDwarfFrameEmitter::Emit(MCStreamer &streamer, bool usingCFI) { const MCContext &context = streamer.getContext(); const TargetAsmInfo &asmInfo = context.getTargetAsmInfo(); + const MCSection §ion = *asmInfo.getEHFrameSection(); + streamer.SwitchSection(§ion); MCSymbol *fdeEnd = NULL; DenseMap<CIEKey, const MCSymbol*> CIEStarts; |