Skip to content

Commit 6b1dec6

Browse files
committed
MCStreamer out of line
1 parent cd9c767 commit 6b1dec6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

llvm/include/llvm/Target/TargetMachine.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,7 @@ class TargetMachine {
490490

491491
virtual Expected<std::unique_ptr<MCStreamer>>
492492
createMCStreamer(raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut,
493-
CodeGenFileType FileType, MCContext &Ctx) {
494-
return nullptr;
495-
}
493+
CodeGenFileType FileType, MCContext &Ctx);
496494

497495
/// True if the target uses physical regs (as nearly all targets do). False
498496
/// for stack machines such as WebAssembly and other virtual-register

llvm/lib/Target/TargetMachine.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ TargetMachine::TargetMachine(const Target &T, StringRef DataLayoutString,
4545

4646
TargetMachine::~TargetMachine() = default;
4747

48+
virtual Expected<std::unique_ptr<MCStreamer>>
49+
createMCStreamer(raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut,
50+
CodeGenFileType FileType, MCContext &Ctx) {
51+
return nullptr;
52+
}
53+
4854
bool TargetMachine::isLargeGlobalValue(const GlobalValue *GVal) const {
4955
if (getTargetTriple().getArch() != Triple::x86_64)
5056
return false;

0 commit comments

Comments
 (0)