MachineModuleInfo: Prefer the LLVM_NODISCARD spelling

Update a function annotated with LLVM_ATTRIBUTE_UNUSED_RESULT to use
LLVM_NODISCARD instead.

llvm-svn: 284346
This commit is contained in:
Justin Bogner 2016-10-16 21:18:26 +00:00
parent 134b30cb55
commit 84d51dc255
1 changed files with 1 additions and 2 deletions

View File

@ -293,8 +293,7 @@ public:
return FrameInstructions; return FrameInstructions;
} }
unsigned LLVM_ATTRIBUTE_UNUSED_RESULT LLVM_NODISCARD unsigned addFrameInst(const MCCFIInstruction &Inst) {
addFrameInst(const MCCFIInstruction &Inst) {
FrameInstructions.push_back(Inst); FrameInstructions.push_back(Inst);
return FrameInstructions.size() - 1; return FrameInstructions.size() - 1;
} }