[llvm] r284346 - MachineModuleInfo: Prefer the LLVM_NODISCARD spelling

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 16 14:18:26 PDT 2016


Author: bogner
Date: Sun Oct 16 16:18:26 2016
New Revision: 284346

URL: http://llvm.org/viewvc/llvm-project?rev=284346&view=rev
Log:
MachineModuleInfo: Prefer the LLVM_NODISCARD spelling

Update a function annotated with LLVM_ATTRIBUTE_UNUSED_RESULT to use
LLVM_NODISCARD instead.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h?rev=284346&r1=284345&r2=284346&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h Sun Oct 16 16:18:26 2016
@@ -293,8 +293,7 @@ public:
     return FrameInstructions;
   }
 
-  unsigned LLVM_ATTRIBUTE_UNUSED_RESULT
-  addFrameInst(const MCCFIInstruction &Inst) {
+  LLVM_NODISCARD unsigned addFrameInst(const MCCFIInstruction &Inst) {
     FrameInstructions.push_back(Inst);
     return FrameInstructions.size() - 1;
   }




More information about the llvm-commits mailing list