Use unique_ptr to own MCFunctions within MCModule.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 15 Apr 2014 05:15:19 +0000 (05:15 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 15 Apr 2014 05:15:19 +0000 (05:15 +0000)
commitff2bf1bb8dec9a287d3581e84a974463ac74ca36
tree95be5be168964009007f249f8a253be8de7aa41d
parent570e52c6f17d8819ee4c8595fc79d17a6dc51dd9
Use unique_ptr to own MCFunctions within MCModule.

MCModule's ctor had to be moved out of line so the definition of
MCFunction was available. (ctor requires the dtor of members (in case
the ctor throws) which required access to the dtor of MCFunction)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206244 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCModule.h
lib/MC/MCModule.cpp
lib/MC/MCModuleYAML.cpp
lib/MC/MCObjectDisassembler.cpp