mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
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
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user