aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCAsmStreamer.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/MCAsmStreamer.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/MCAsmStreamer.cpp')
-rw-r--r--lib/MC/MCAsmStreamer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index ee13429..f8c3a8a 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -190,7 +190,7 @@ public:
virtual bool EmitCFIDefCfaRegister(int64_t Register);
virtual bool EmitCFIOffset(int64_t Register, int64_t Offset);
virtual bool EmitCFIPersonality(const MCSymbol *Sym, unsigned Encoding);
- virtual bool EmitCFILsda(const MCSymbol *Sym);
+ virtual bool EmitCFILsda(const MCSymbol *Sym, unsigned Encoding);
virtual void EmitInstruction(const MCInst &Inst);
@@ -769,11 +769,11 @@ bool MCAsmStreamer::EmitCFIPersonality(const MCSymbol *Sym,
return false;
}
-bool MCAsmStreamer::EmitCFILsda(const MCSymbol *Sym) {
- if (this->MCStreamer::EmitCFILsda(Sym))
+bool MCAsmStreamer::EmitCFILsda(const MCSymbol *Sym, unsigned Encoding) {
+ if (this->MCStreamer::EmitCFILsda(Sym, Encoding))
return true;
- OS << ".cfi_lsda 0, " << *Sym;
+ OS << ".cfi_lsda " << Encoding << ", " << *Sym;
EmitEOL();
return false;