diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-31 03:12:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-31 03:12:45 +0000 |
commit | 437b0d588703adbfb01e7c77ec8f40d85ddd573b (patch) | |
tree | f7e01d94b89564ba63da611328bf9fd32f0465a8 /llvm/lib/DebugInfo/DWARFUnit.cpp | |
parent | db9552f4a4ca7cd8edf786037b2db948dfac1b1e (diff) | |
download | bcm5719-llvm-437b0d588703adbfb01e7c77ec8f40d85ddd573b.tar.gz bcm5719-llvm-437b0d588703adbfb01e7c77ec8f40d85ddd573b.zip |
Use std::unique_ptr to make the ownership explicit.
llvm-svn: 214377
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFUnit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARFUnit.cpp index 39d0a0ff5a4..4ec3bdd5823 100644 --- a/llvm/lib/DebugInfo/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARFUnit.cpp @@ -260,12 +260,12 @@ bool DWARFUnit::parseDWO() { sys::path::append(AbsolutePath, CompilationDir); } sys::path::append(AbsolutePath, DWOFileName); - ErrorOr<object::ObjectFile *> DWOFile = + ErrorOr<std::unique_ptr<object::ObjectFile>> DWOFile = object::ObjectFile::createObjectFile(AbsolutePath); if (!DWOFile) return false; // Reset DWOHolder. - DWO.reset(new DWOHolder(DWOFile.get())); + DWO.reset(new DWOHolder(DWOFile.get().get())); DWARFUnit *DWOCU = DWO->getUnit(); // Verify that compile unit in .dwo file is valid. if (!DWOCU || DWOCU->getDWOId() != getDWOId()) { |