diff options
author | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 173a4f43a911175643bda81ee675e8d9269056ea (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /include/clang/CodeGen/CodeGenAction.h | |
parent | 88f7a7d5251a2d813460274c92decc143a11569b (diff) | |
download | FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.zip FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.tar.gz |
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957
Diffstat (limited to 'include/clang/CodeGen/CodeGenAction.h')
-rw-r--r-- | include/clang/CodeGen/CodeGenAction.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/include/clang/CodeGen/CodeGenAction.h b/include/clang/CodeGen/CodeGenAction.h index 912ef01..37819c7 100644 --- a/include/clang/CodeGen/CodeGenAction.h +++ b/include/clang/CodeGen/CodeGenAction.h @@ -11,7 +11,7 @@ #define LLVM_CLANG_CODEGEN_CODE_GEN_ACTION_H #include "clang/Frontend/FrontendAction.h" -#include "llvm/ADT/OwningPtr.h" +#include <memory> namespace llvm { class LLVMContext; @@ -24,7 +24,7 @@ class BackendConsumer; class CodeGenAction : public ASTFrontendAction { private: unsigned Act; - OwningPtr<llvm::Module> TheModule; + std::unique_ptr<llvm::Module> TheModule; llvm::Module *LinkModule; llvm::LLVMContext *VMContext; bool OwnsVMContext; @@ -33,16 +33,16 @@ protected: /// Create a new code generation action. If the optional \p _VMContext /// parameter is supplied, the action uses it without taking ownership, /// otherwise it creates a fresh LLVM context and takes ownership. - CodeGenAction(unsigned _Act, llvm::LLVMContext *_VMContext = 0); + CodeGenAction(unsigned _Act, llvm::LLVMContext *_VMContext = nullptr); - virtual bool hasIRSupport() const; + bool hasIRSupport() const override; - virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI, - StringRef InFile); + ASTConsumer *CreateASTConsumer(CompilerInstance &CI, + StringRef InFile) override; - virtual void ExecuteAction(); + void ExecuteAction() override; - virtual void EndSourceFileAction(); + void EndSourceFileAction() override; public: ~CodeGenAction(); @@ -65,37 +65,37 @@ public: class EmitAssemblyAction : public CodeGenAction { virtual void anchor(); public: - EmitAssemblyAction(llvm::LLVMContext *_VMContext = 0); + EmitAssemblyAction(llvm::LLVMContext *_VMContext = nullptr); }; class EmitBCAction : public CodeGenAction { virtual void anchor(); public: - EmitBCAction(llvm::LLVMContext *_VMContext = 0); + EmitBCAction(llvm::LLVMContext *_VMContext = nullptr); }; class EmitLLVMAction : public CodeGenAction { virtual void anchor(); public: - EmitLLVMAction(llvm::LLVMContext *_VMContext = 0); + EmitLLVMAction(llvm::LLVMContext *_VMContext = nullptr); }; class EmitLLVMOnlyAction : public CodeGenAction { virtual void anchor(); public: - EmitLLVMOnlyAction(llvm::LLVMContext *_VMContext = 0); + EmitLLVMOnlyAction(llvm::LLVMContext *_VMContext = nullptr); }; class EmitCodeGenOnlyAction : public CodeGenAction { virtual void anchor(); public: - EmitCodeGenOnlyAction(llvm::LLVMContext *_VMContext = 0); + EmitCodeGenOnlyAction(llvm::LLVMContext *_VMContext = nullptr); }; class EmitObjAction : public CodeGenAction { virtual void anchor(); public: - EmitObjAction(llvm::LLVMContext *_VMContext = 0); + EmitObjAction(llvm::LLVMContext *_VMContext = nullptr); }; } |