Skip to content

Commit bf9e0ed

Browse files
committed
[CodeGen] Use LLVM_ATTRIBUTE_UNUSED instead of LLVM_DUMP_METHOD on a raw_ostream operator<<.
LLVM_DUMP_METHOD includes ATTRIBUTE_NOINLINE. operator<< isn't what we normally consider a dump method so it should be ok to inline. This fixes a warning from gcc that some other declaration for some other class was inline but this one is noinline. Seems like a bogus warning from gcc really.
1 parent 35eff6c commit bf9e0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/ScheduleDAGInstrs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ LLVM_DUMP_METHOD void ILPValue::dump() const {
15221522

15231523
namespace llvm {
15241524

1525-
LLVM_DUMP_METHOD
1525+
LLVM_ATTRIBUTE_UNUSED
15261526
raw_ostream &operator<<(raw_ostream &OS, const ILPValue &Val) {
15271527
Val.print(OS);
15281528
return OS;

0 commit comments

Comments
 (0)