@@ -46,8 +46,8 @@ static int Execute(llvm::Module *Mod, char * const *envp) {
4646 llvm::InitializeNativeTarget ();
4747
4848 std::string Error;
49- OwningPtr <llvm::ExecutionEngine> EE (
50- llvm::ExecutionEngine::createJIT (Mod, &Error));
49+ std::unique_ptr <llvm::ExecutionEngine> EE (
50+ llvm::ExecutionEngine::createJIT (Mod, &Error));
5151 if (!EE) {
5252 llvm::errs () << " unable to make execution engine: " << Error << " \n " ;
5353 return 255 ;
@@ -83,7 +83,7 @@ int main(int argc, const char **argv, char * const *envp) {
8383 // (basically, exactly one input, and the operation mode is hard wired).
8484 SmallVector<const char *, 16 > Args (argv, argv + argc);
8585 Args.push_back (" -fsyntax-only" );
86- OwningPtr <Compilation> C (TheDriver.BuildCompilation (Args));
86+ std::unique_ptr <Compilation> C (TheDriver.BuildCompilation (Args));
8787 if (!C)
8888 return 0 ;
8989
@@ -108,7 +108,7 @@ int main(int argc, const char **argv, char * const *envp) {
108108
109109 // Initialize a compiler invocation object from the clang (-cc1) arguments.
110110 const driver::ArgStringList &CCArgs = Cmd->getArguments ();
111- OwningPtr <CompilerInvocation> CI (new CompilerInvocation);
111+ std::unique_ptr <CompilerInvocation> CI (new CompilerInvocation);
112112 CompilerInvocation::CreateFromArgs (*CI,
113113 const_cast <const char **>(CCArgs.data ()),
114114 const_cast <const char **>(CCArgs.data ()) +
@@ -140,7 +140,7 @@ int main(int argc, const char **argv, char * const *envp) {
140140 CompilerInvocation::GetResourcesPath (argv[0 ], MainAddr);
141141
142142 // Create and execute the frontend to generate an LLVM bitcode module.
143- OwningPtr <CodeGenAction> Act (new EmitLLVMOnlyAction ());
143+ std::unique_ptr <CodeGenAction> Act (new EmitLLVMOnlyAction ());
144144 if (!Clang.ExecuteAction (*Act))
145145 return 1 ;
146146
0 commit comments