summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-07-10 15:32:17 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-07-10 15:32:17 +0000
commite13e6dbe406dd7b15bb2a02d050d32c44056a329 (patch)
tree00f448a67613e3f95ae93985a1f90887ec8577f4 /llvm/lib/MC/MCObjectStreamer.cpp
parent88ef98b02b7c8bcf73e0da7a4d5be436cb014b2e (diff)
downloadbcm5719-llvm-e13e6dbe406dd7b15bb2a02d050d32c44056a329.tar.gz
bcm5719-llvm-e13e6dbe406dd7b15bb2a02d050d32c44056a329.zip
[MC] Add interface to finish pending labels.
When manually finishing the object writer in dsymutil, it's possible that there are pending labels that haven't been resolved. This results in an assertion when the assembler tries to fixup a label that doesn't have an address yet. Differential revision: https://reviews.llvm.org/D49131 llvm-svn: 336688
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index 8122af459b7..9fab8d835f8 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -671,6 +671,6 @@ void MCObjectStreamer::FinishImpl() {
// Dump out the dwarf file & directory tables and line tables.
MCDwarfLineTable::Emit(this, getAssembler().getDWARFLinetableParams());
- flushPendingLabels(nullptr);
+ flushPendingLabels();
getAssembler().Finish();
}
OpenPOWER on IntegriCloud