aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-27 15:56:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-27 15:56:22 +0000
commitbdc3167c086dd4358e24692075db5e7784140843 (patch)
treee431c774400004167c5aafb3663c666f24952bea /lib/MC/MCStreamer.cpp
parente8624538062da215fe23cfe201b1c905eb7ebb12 (diff)
downloadexternal_llvm-bdc3167c086dd4358e24692075db5e7784140843.zip
external_llvm-bdc3167c086dd4358e24692075db5e7784140843.tar.gz
external_llvm-bdc3167c086dd4358e24692075db5e7784140843.tar.bz2
Add support for .cfi_lsda.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCStreamer.cpp')
-rw-r--r--lib/MC/MCStreamer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp
index 399b4ba..922a40c 100644
--- a/lib/MC/MCStreamer.cpp
+++ b/lib/MC/MCStreamer.cpp
@@ -157,7 +157,7 @@ bool MCStreamer::EmitCFIStartProc() {
report_fatal_error("Starting a frame before finishing the previous one!");
return true;
}
- MCDwarfFrameInfo Frame = {0, 0, 0, 0};
+ MCDwarfFrameInfo Frame = {0, 0, 0, 0, 0, 0};
Frame.Begin = getContext().CreateTempSymbol();
EmitLabel(Frame.Begin);
FrameInfos.push_back(Frame);
@@ -196,10 +196,11 @@ bool MCStreamer::EmitCFIPersonality(const MCSymbol *Sym,
return false;
}
-bool MCStreamer::EmitCFILsda(const MCSymbol *Sym) {
+bool MCStreamer::EmitCFILsda(const MCSymbol *Sym, unsigned Encoding) {
EnsureValidFrame();
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
CurFrame->Lsda = Sym;
+ CurFrame->LsdaEncoding = Encoding;
return false;
}