Replace llvm::OwningPtr with std::unique_ptr

It looks like llvm::OwningPtr is going to be removed soon.


Swift SVN r14729
This commit is contained in:
Dmitri Hrybenko
2014-03-06 09:47:17 +00:00
parent 07cb1c935a
commit f232267f23
16 changed files with 52 additions and 81 deletions

View File

@@ -48,7 +48,7 @@ public:
/// Loads an OutputFileMap from the given \p Buffer, taking ownership
/// of the buffer in the process.
static std::unique_ptr<OutputFileMap>
loadFromBuffer(llvm::MemoryBuffer *Buffer);
loadFromBuffer(std::unique_ptr<llvm::MemoryBuffer> Buffer);
/// Get the map of outputs for the given \p Input, if present in the
/// OutputFileMap. (If not present, returns nullptr.)
@@ -62,7 +62,7 @@ private:
/// of \p Buffer in the process.
///
/// \returns true on error, false on success
bool parse(llvm::MemoryBuffer *Buffer);
bool parse(std::unique_ptr<llvm::MemoryBuffer> Buffer);
};
} // end namespace driver