OSDN Git Service

Return a std::unique_ptr from parseInputFile and propagate. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 26 Aug 2014 17:19:03 +0000 (17:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 26 Aug 2014 17:19:03 +0000 (17:19 +0000)
commit1bfd87a1507609df1ec7ebbff66f725c8dcede4e
tree32f0e84f546122192eb7c2966af73258b5526e4c
parent85ae5fc082eb98b9a4d6ec7a7adf3a2f0b17c567
Return a std::unique_ptr from parseInputFile and propagate. NFC.

The memory management in BugPoint is fairly convoluted, so this just unwraps
one layer by changing the return type of functions that always return
owned Modules.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216464 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/BugDriver.cpp
tools/bugpoint/BugDriver.h
tools/bugpoint/CrashDebugger.cpp
tools/bugpoint/ExtractFunction.cpp
tools/bugpoint/Miscompilation.cpp
tools/bugpoint/OptimizerDriver.cpp