]> granicus.if.org Git - clang/commit
Revert r215331, "unique_ptrify CompilerInstance::OutputFile(s) and remove a unique_pt...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 11 Aug 2014 06:53:11 +0000 (06:53 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 11 Aug 2014 06:53:11 +0000 (06:53 +0000)
commita3b5e0171dfec42c7fdbb7e8389af766a707e04f
treeabeec58d3135daef6a04c264a9ec57f2244ad146
parent02b2fe524cc2a7480d06ce6a0104e0ce36d31ee9
Revert r215331, "unique_ptrify CompilerInstance::OutputFile(s) and remove a unique_ptr around a non-owning raw_ostream in CodeGenAction::CreateASTConsumer"

It cannot be compiled on Visual Studio 2012.

  clang\include\clang/Frontend/CompilerInstance.h(153):
error C2248: 'std::unique_ptr<_Ty>::unique_ptr' : cannot access private member declared in class 'std::unique_ptr<_Ty>'
            with
            [
                _Ty=llvm::raw_ostream
            ]
            D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\memory(1447) : see declaration of 'std::unique_ptr<_Ty>::unique_ptr'
            with
            [
                _Ty=llvm::raw_ostream
            ]
            This diagnostic occurred in the compiler generated function 'clang::CompilerInstance::OutputFile::OutputFile(const clang::CompilerInstance::OutputFile &)'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215346 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/CompilerInstance.h
lib/CodeGen/CodeGenAction.cpp
lib/Frontend/CompilerInstance.cpp