OSDN Git Service

[MC] Add interface to finish pending labels.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 10 Jul 2018 15:32:17 +0000 (15:32 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 10 Jul 2018 15:32:17 +0000 (15:32 +0000)
commit74dc40422c2c022c5762ff02147360afda8bf8d8
tree62b843388e07ce9e2e3929a77467282073b345b5
parent7176a5d65f55dabbeebfc2cecfe247af722701cd
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336688 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCObjectStreamer.h
lib/MC/MCObjectStreamer.cpp
tools/dsymutil/MachOUtils.cpp