diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-27 15:56:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-27 15:56:22 +0000 |
commit | bdc3167c086dd4358e24692075db5e7784140843 (patch) | |
tree | e431c774400004167c5aafb3663c666f24952bea /lib/MC/MCStreamer.cpp | |
parent | e8624538062da215fe23cfe201b1c905eb7ebb12 (diff) | |
download | external_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.cpp | 5 |
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; } |