[llvm] r335109 - [llvm-exegesis] Remove noexcept in r335105.

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 02:18:37 PDT 2018


Author: courbet
Date: Wed Jun 20 02:18:37 2018
New Revision: 335109

URL: http://llvm.org/viewvc/llvm-project?rev=335109&view=rev
Log:
[llvm-exegesis] Remove noexcept in r335105.

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

Modified:
    llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp
    llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h

Modified: llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp?rev=335109&r1=335108&r2=335109&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.cpp Wed Jun 20 02:18:37 2018
@@ -86,11 +86,11 @@ Instruction::Instruction(const llvm::MCI
 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::random
 
 SnippetPrototype::SnippetPrototype(SnippetPrototype &&) = default;
 
-SnippetPrototype &SnippetPrototype::operator=(SnippetPrototype &&) = default;
+SnippetPrototype &SnippetPrototype::
+operator=(SnippetPrototype &&) = default;
 
 bool RegisterOperandAssignment::
 operator==(const RegisterOperandAssignment &Other) const {

Modified: llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h?rev=335109&r1=335108&r2=335109&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/MCInstrDescView.h Wed Jun 20 02:18:37 2018
@@ -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;




More information about the llvm-commits mailing list