[llvm] r309687 - [globalisel][tablegen] Removed unnecessary typedef pointed out in post-commit review for r308599. NFC

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 1 07:55:35 PDT 2017


Author: dsanders
Date: Tue Aug  1 07:55:34 2017
New Revision: 309687

URL: http://llvm.org/viewvc/llvm-project?rev=309687&view=rev
Log:
[globalisel][tablegen] Removed unnecessary typedef pointed out in post-commit review for r308599. NFC

Modified:
    llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h

Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h?rev=309687&r1=309686&r2=309687&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h Tue Aug  1 07:55:34 2017
@@ -29,7 +29,7 @@ bool InstructionSelector::executeMatchTa
   uint64_t CurrentIdx = 0;
   SmallVector<uint64_t, 8> OnFailResumeAt;
 
-  typedef enum { RejectAndGiveUp, RejectAndResume } RejectAction;
+  enum RejectAction { RejectAndGiveUp, RejectAndResume };
   auto handleReject = [&]() -> RejectAction {
     DEBUG(dbgs() << CurrentIdx << ": Rejected\n");
     if (OnFailResumeAt.empty())




More information about the llvm-commits mailing list