]> granicus.if.org Git - llvm/commit
Change setDiagnosticsOutputFile to take a unique_ptr from a raw pointer (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 19 Nov 2016 18:19:41 +0000 (18:19 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 19 Nov 2016 18:19:41 +0000 (18:19 +0000)
commit1bb4b12315d3fd402ba3aa9b95585bcc4cfa2048
treefc02fb53b54f85d1fcaed81196e32126c30c7f5d
parent23f587bb5dcfb84bd5e04133473319063e02fab7
Change setDiagnosticsOutputFile to take a unique_ptr from a raw pointer (NFC)

Summary:
This makes it explicit that ownership is taken. Also replace all `new`
with make_unique<> at call sites.

Reviewers: anemet

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D26884

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287449 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/LLVMContext.h
lib/IR/LLVMContext.cpp
lib/LTO/LTOCodeGenerator.cpp
tools/opt/opt.cpp