Skip to content

Commit 0ed2170

Browse files
committed
[DWARFLinker][dsymutil] followup for 88c2137
That patch is a followup for "Move DwarfStreamer into DWARFLinker". It fixes build with LLVM_LINK_LLVM_DYLIB.
1 parent 9fb8718 commit 0ed2170

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

llvm/lib/DWARFLinker/DWARFStreamer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
namespace llvm {
2929

30-
static mc::RegisterMCTargetOptionsFlags MOF;
31-
3230
bool DwarfStreamer::init(Triple TheTriple) {
3331
std::string ErrorStr;
3432
std::string TripleName;

llvm/tools/dsymutil/DwarfLinkerForBinary.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
#include "llvm/Support/raw_ostream.h"
8484
#include "llvm/Target/TargetMachine.h"
8585
#include "llvm/Target/TargetOptions.h"
86+
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
8687
#include <algorithm>
8788
#include <cassert>
8889
#include <cinttypes>
@@ -100,6 +101,9 @@
100101
#include <vector>
101102

102103
namespace llvm {
104+
105+
static mc::RegisterMCTargetOptionsFlags MOF;
106+
103107
namespace dsymutil {
104108

105109
static Error copySwiftInterfaces(

0 commit comments

Comments
 (0)