[llvm] r190354 - Set the encoding to '0' if we don't have an MAB.
Bill Wendling
isanbard at gmail.com
Mon Sep 9 14:22:45 PDT 2013
Author: void
Date: Mon Sep 9 16:22:44 2013
New Revision: 190354
URL: http://llvm.org/viewvc/llvm-project?rev=190354&view=rev
Log:
Set the encoding to '0' if we don't have an MAB.
Modified:
llvm/trunk/lib/MC/MCStreamer.cpp
Modified: llvm/trunk/lib/MC/MCStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCStreamer.cpp?rev=190354&r1=190353&r2=190354&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCStreamer.cpp Mon Sep 9 16:22:44 2013
@@ -74,11 +74,10 @@ raw_ostream &MCStreamer::GetCommentOS()
}
void MCStreamer::generateCompactUnwindEncodings(MCAsmBackend *MAB) {
- if (!MAB) return;
for (std::vector<MCDwarfFrameInfo>::iterator I = FrameInfos.begin(),
E = FrameInfos.end(); I != E; ++I)
I->CompactUnwindEncoding =
- MAB->generateCompactUnwindEncoding(I->Instructions);
+ (MAB ? MAB->generateCompactUnwindEncoding(I->Instructions) : 0);
}
void MCStreamer::EmitDwarfSetLineAddr(int64_t LineDelta,
More information about the llvm-commits
mailing list