-Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated...
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 1 Aug 2015 04:40:41 +0000 (04:40 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 1 Aug 2015 04:40:41 +0000 (04:40 +0000)
commit299ab3d150fbaf92455b61e786ee5888e8b798fb
treed3d56dccfe381eedeb21c9607d6d1e1c9cc9efea
parent0dd9ec77d1ba0a9159adf1809c18cd35cddeb35d
-Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated in C++11

Various targets use std::swap on specific MCAsmOperands (ARM and
possibly Hexagon as well). It might be helpful to mark those subclasses
as final, to ensure that the availability of move/copy operations can't
lead to slicing. (same sort of requirements as the non-vitual dtor -
protected or a final class)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243820 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCParsedAsmOperand.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp