mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Attempt to fix the MSVC build by working around a layering issue
Since MCStreamer isn't part of Support, the dtor can't be called from here - so just pass by reference instead. This is rather imperfect, but will hopefully suffice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
341a7e245e
commit
e6e3b36975
@ -381,7 +381,7 @@ namespace llvm {
|
||||
/// createAsmPrinter - Create a target specific assembly printer pass. This
|
||||
/// takes ownership of the MCStreamer object.
|
||||
AsmPrinter *createAsmPrinter(TargetMachine &TM,
|
||||
std::unique_ptr<MCStreamer> Streamer) const {
|
||||
std::unique_ptr<MCStreamer> &&Streamer) const {
|
||||
if (!AsmPrinterCtorFn)
|
||||
return nullptr;
|
||||
return AsmPrinterCtorFn(TM, std::move(Streamer));
|
||||
|
Loading…
x
Reference in New Issue
Block a user