OSDN Git Service

[llvm-exegesis] Remove noexcept in r335105.
authorClement Courbet <courbet@google.com>
Wed, 20 Jun 2018 09:18:37 +0000 (09:18 +0000)
committerClement Courbet <courbet@google.com>
Wed, 20 Jun 2018 09:18:37 +0000 (09:18 +0000)
gcc checks for transitivity (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53903)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335109 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-exegesis/lib/MCInstrDescView.cpp
tools/llvm-exegesis/lib/MCInstrDescView.h

index 5ea45c9..acfa825 100644 (file)
@@ -86,11 +86,11 @@ Instruction::Instruction(const llvm::MCInstrDesc &MCInstrDesc,
 InstructionInstance::InstructionInstance(const Instruction &Instr)
     : Instr(Instr), VariableValues(Instr.Variables.size()) {}
 
-InstructionInstance::InstructionInstance(InstructionInstance &&) noexcept =
+InstructionInstance::InstructionInstance(InstructionInstance &&) =
     default;
 
 InstructionInstance &InstructionInstance::
-operator=(InstructionInstance &&) noexcept = default;
+operator=(InstructionInstance &&) = default;
 
 unsigned InstructionInstance::getOpcode() const {
   return Instr.Description->getOpcode();
@@ -135,7 +135,8 @@ llvm::MCInst InstructionInstance::randomizeUnsetVariablesAndBuild() {
 
 SnippetPrototype::SnippetPrototype(SnippetPrototype &&) = default;
 
-SnippetPrototype &SnippetPrototype::operator=(SnippetPrototype &&) = default;
+SnippetPrototype &SnippetPrototype::
+operator=(SnippetPrototype &&) = default;
 
 bool RegisterOperandAssignment::
 operator==(const RegisterOperandAssignment &Other) const {
index 7cfe3c1..233ef47 100644 (file)
@@ -88,8 +88,8 @@ struct InstructionInstance {
   InstructionInstance &operator=(const InstructionInstance &) = delete;
 
   // Moving is OK.
-  InstructionInstance(InstructionInstance &&) noexcept;
-  InstructionInstance &operator=(InstructionInstance &&) noexcept;
+  InstructionInstance(InstructionInstance &&);
+  InstructionInstance &operator=(InstructionInstance &&);
 
   unsigned getOpcode() const;
   llvm::MCOperand &getValueFor(const Variable &Var);
@@ -116,8 +116,8 @@ struct SnippetPrototype {
   SnippetPrototype &operator=(const SnippetPrototype &) = delete;
 
   // Moving is OK.
-  SnippetPrototype(SnippetPrototype &&) noexcept;
-  SnippetPrototype &operator=(SnippetPrototype &&) noexcept;
+  SnippetPrototype(SnippetPrototype &&);
+  SnippetPrototype &operator=(SnippetPrototype &&);
 
   std::string Explanation;
   std::vector<InstructionInstance> Snippet;