From 6c8f736ba77bda52a4aa3e1f82c465b6112d8344 Mon Sep 17 00:00:00 2001 From: Bob Haarman Date: Tue, 17 Jan 2017 19:07:42 +0000 Subject: COFF: add error() and warn() to Error.{cpp,h} Summary: This copies over some functionality we have in ELF/Error.{cpp,h} and makes it available in COFF/Error.{cpp,h} Reviewers: pcc, rafael, ruiu Subscribers: Differential Revision: https://reviews.llvm.org/D28692 llvm-svn: 292240 --- lld/include/lld/Driver/Driver.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lld/include/lld') diff --git a/lld/include/lld/Driver/Driver.h b/lld/include/lld/Driver/Driver.h index a3265c85716..4ba0994e88b 100644 --- a/lld/include/lld/Driver/Driver.h +++ b/lld/include/lld/Driver/Driver.h @@ -15,7 +15,8 @@ namespace lld { namespace coff { -bool link(llvm::ArrayRef Args); +bool link(llvm::ArrayRef Args, + llvm::raw_ostream &Diag = llvm::errs()); } namespace elf { -- cgit v1.2.1