From: David Blaikie Date: Sun, 18 Jan 2015 20:43:57 +0000 (+0000) Subject: Attempt to fix the MSVC build by working around a layering issue X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6e3b369759b97735dc5726afa08f48b961b5550;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/TargetRegistry.h b/include/llvm/Support/TargetRegistry.h index 16fb882906c..00831aab0c0 100644 --- a/include/llvm/Support/TargetRegistry.h +++ b/include/llvm/Support/TargetRegistry.h @@ -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 Streamer) const { + std::unique_ptr &&Streamer) const { if (!AsmPrinterCtorFn) return nullptr; return AsmPrinterCtorFn(TM, std::move(Streamer));