[llvm-exegesis] Remove noexcept in r335105.

gcc checks for transitivity (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53903)

llvm-svn: 335109
This commit is contained in:
Clement Courbet 2018-06-20 09:18:37 +00:00
parent 2c409702a9
commit e4f885b5a2
2 changed files with 8 additions and 7 deletions

View File

@ -86,11 +86,11 @@ Instruction::Instruction(const llvm::MCInstrDesc &MCInstrDesc,
InstructionInstance::InstructionInstance(const Instruction &Instr) InstructionInstance::InstructionInstance(const Instruction &Instr)
: Instr(Instr), VariableValues(Instr.Variables.size()) {} : Instr(Instr), VariableValues(Instr.Variables.size()) {}
InstructionInstance::InstructionInstance(InstructionInstance &&) noexcept = InstructionInstance::InstructionInstance(InstructionInstance &&) =
default; default;
InstructionInstance &InstructionInstance:: InstructionInstance &InstructionInstance::
operator=(InstructionInstance &&) noexcept = default; operator=(InstructionInstance &&) = default;
unsigned InstructionInstance::getOpcode() const { unsigned InstructionInstance::getOpcode() const {
return Instr.Description->getOpcode(); return Instr.Description->getOpcode();
@ -135,7 +135,8 @@ llvm::MCInst InstructionInstance::randomizeUnsetVariablesAndBuild() {
SnippetPrototype::SnippetPrototype(SnippetPrototype &&) = default; SnippetPrototype::SnippetPrototype(SnippetPrototype &&) = default;
SnippetPrototype &SnippetPrototype::operator=(SnippetPrototype &&) = default; SnippetPrototype &SnippetPrototype::
operator=(SnippetPrototype &&) = default;
bool RegisterOperandAssignment:: bool RegisterOperandAssignment::
operator==(const RegisterOperandAssignment &Other) const { operator==(const RegisterOperandAssignment &Other) const {

View File

@ -88,8 +88,8 @@ struct InstructionInstance {
InstructionInstance &operator=(const InstructionInstance &) = delete; InstructionInstance &operator=(const InstructionInstance &) = delete;
// Moving is OK. // Moving is OK.
InstructionInstance(InstructionInstance &&) noexcept; InstructionInstance(InstructionInstance &&);
InstructionInstance &operator=(InstructionInstance &&) noexcept; InstructionInstance &operator=(InstructionInstance &&);
unsigned getOpcode() const; unsigned getOpcode() const;
llvm::MCOperand &getValueFor(const Variable &Var); llvm::MCOperand &getValueFor(const Variable &Var);
@ -116,8 +116,8 @@ struct SnippetPrototype {
SnippetPrototype &operator=(const SnippetPrototype &) = delete; SnippetPrototype &operator=(const SnippetPrototype &) = delete;
// Moving is OK. // Moving is OK.
SnippetPrototype(SnippetPrototype &&) noexcept; SnippetPrototype(SnippetPrototype &&);
SnippetPrototype &operator=(SnippetPrototype &&) noexcept; SnippetPrototype &operator=(SnippetPrototype &&);
std::string Explanation; std::string Explanation;
std::vector<InstructionInstance> Snippet; std::vector<InstructionInstance> Snippet;