diff options
| author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 20:03:18 +0000 |
|---|---|---|
| committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 20:03:18 +0000 |
| commit | 70639e8de3f7232504008ae36507eb0125093907 (patch) | |
| tree | f909e5aea2fab1df90f2ecae3695c0acfeb45e8c /lib/CodeGen/CodeGenAction.cpp | |
| parent | caabaa8e4b0d6d4534152852a3dfc69cfd386050 (diff) | |
| download | clang-70639e8de3f7232504008ae36507eb0125093907.tar.gz clang-70639e8de3f7232504008ae36507eb0125093907.tar.bz2 clang-70639e8de3f7232504008ae36507eb0125093907.tar.xz | |
Replace OwningPtr with std::unique_ptr.
This compiles cleanly with lldb/lld/clang-tools-extra/llvm.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenAction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 280d7646be..24961abc72 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -47,9 +47,9 @@ namespace clang { Timer LLVMIRGeneration; - OwningPtr<CodeGenerator> Gen; + std::unique_ptr<CodeGenerator> Gen; - OwningPtr<llvm::Module> TheModule, LinkModule; + std::unique_ptr<llvm::Module> TheModule, LinkModule; public: BackendConsumer(BackendAction action, DiagnosticsEngine &_Diags, @@ -465,7 +465,7 @@ static raw_ostream *GetOutputStream(CompilerInstance &CI, ASTConsumer *CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { BackendAction BA = static_cast<BackendAction>(Act); - OwningPtr<raw_ostream> OS(GetOutputStream(CI, InFile, BA)); + std::unique_ptr<raw_ostream> OS(GetOutputStream(CI, InFile, BA)); if (BA != Backend_EmitNothing && !OS) return 0; |
