| 1687 | namespace { |
| 1688 | |
| 1689 | Status ValidateNoInline(const FunctionBody* fbody) { |
| 1690 | const auto attr = AttrSlice(&fbody->fdef.attr()); |
| 1691 | bool noinline = false; |
| 1692 | if (TryGetNodeAttr(attr, kNoInlineAttr, &noinline) && noinline) { |
| 1693 | return errors::InvalidArgument( |
| 1694 | "Can't inline function marked with '_noinline'"); |
| 1695 | } |
| 1696 | return Status::OK(); |
| 1697 | } |
| 1698 | |
| 1699 | using OutputControlSrc = InlineFunctionBodyOptions::OutputControlSource; |
| 1700 |
no test coverage detected