That patch is a followup for "Move DwarfStreamer into DWARFLinker".
It fixes build with LLVM_LINK_LLVM_DYLIB.
namespace llvm {
-static mc::RegisterMCTargetOptionsFlags MOF;
-
bool DwarfStreamer::init(Triple TheTriple) {
std::string ErrorStr;
std::string TripleName;
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
+#include "llvm/MC/MCTargetOptionsCommandFlags.h"
#include <algorithm>
#include <cassert>
#include <cinttypes>
#include <vector>
namespace llvm {
+
+static mc::RegisterMCTargetOptionsFlags MOF;
+
namespace dsymutil {
static Error copySwiftInterfaces(