diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-12 10:56:28 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-12 10:56:28 +0000 |
commit | 200241e4de11981523b3d14f3acab6129efed701 (patch) | |
tree | 265e6f10406344d11ebacd61bcb9d6a261a15c82 /tools/opt | |
parent | 71c1b228552ece06003d744b815f669dbfbb0772 (diff) | |
download | external_llvm-200241e4de11981523b3d14f3acab6129efed701.zip external_llvm-200241e4de11981523b3d14f3acab6129efed701.tar.gz external_llvm-200241e4de11981523b3d14f3acab6129efed701.tar.bz2 |
Replace uses of the deprecated std::auto_ptr with OwningPtr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r-- | tools/opt/opt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index ba82bde..e385d7f 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -589,7 +589,7 @@ int main(int argc, char **argv) { SMDiagnostic Err; // Load the input module... - std::auto_ptr<Module> M; + OwningPtr<Module> M; M.reset(ParseIRFile(InputFilename, Err, Context)); if (M.get() == 0) { @@ -656,7 +656,7 @@ int main(int argc, char **argv) { TargetMachine *Machine = 0; if (ModuleTriple.getArch()) Machine = GetTargetMachine(Triple(ModuleTriple)); - std::auto_ptr<TargetMachine> TM(Machine); + OwningPtr<TargetMachine> TM(Machine); // Add internal analysis passes from the target machine. if (TM.get()) |