aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-10 03:26:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-10 03:26:21 +0000
commit774466a8a5388d334b57053fbbfd22b547b729ed (patch)
treee08ab9484d10b7784ed554b12d689856fcf83a6e /lib/MC
parentc25dad8750083829d9a8935ce40d0734e5488f8e (diff)
downloadexternal_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.cpp13
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 &section = *asmInfo.getEHFrameSection();
- streamer.SwitchSection(&section);
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 &section = *asmInfo.getEHFrameSection();
+ streamer.SwitchSection(&section);
MCSymbol *fdeEnd = NULL;
DenseMap<CIEKey, const MCSymbol*> CIEStarts;