summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-09-09 21:22:44 +0000
committerBill Wendling <isanbard@gmail.com>2013-09-09 21:22:44 +0000
commit544d1613fb983d82405eed3053e96077ea71fc78 (patch)
tree75431317a32e120ecce2fd5d24b3b3f74680d939 /llvm/lib/MC
parent093f240a73f985026ec1e393a29ef5527a60bdde (diff)
downloadbcm5719-llvm-544d1613fb983d82405eed3053e96077ea71fc78.tar.gz
bcm5719-llvm-544d1613fb983d82405eed3053e96077ea71fc78.zip
Set the encoding to '0' if we don't have an MAB.
llvm-svn: 190354
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index c16670ad7ca..c2a20f9ca6a 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -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,
OpenPOWER on IntegriCloud