OSDN Git Service

Explicitly pass ownership of the MemoryBuffer to AddNewSourceBuffer using std::unique_ptr
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 21 Aug 2014 20:44:56 +0000 (20:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 21 Aug 2014 20:44:56 +0000 (20:44 +0000)
commit95ca0fb2474fbc79be19bde718096de4ae9df82f
treed1579c9ecdd297b2d88e01a6375920beea1bb57f
parentfdbf61d00d95d1fe27fbc7fb4e0b7b71e3aa929e
Explicitly pass ownership of the MemoryBuffer to AddNewSourceBuffer using std::unique_ptr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216223 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Support/SourceMgr.h
lib/AsmParser/Parser.cpp
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
lib/MC/MCParser/AsmParser.cpp
lib/Object/IRObjectFile.cpp
lib/Support/SourceMgr.cpp
lib/Support/YAMLParser.cpp
lib/TableGen/Main.cpp
tools/llvm-mc/llvm-mc.cpp
tools/llvm-mcmarkup/llvm-mcmarkup.cpp
unittests/Support/SourceMgrTest.cpp
utils/FileCheck/FileCheck.cpp