[llvm] r184374 - Make this static inline to avoid duplicates.

Richard Smith richard at metafoo.co.uk
Wed Jun 19 20:29:11 PDT 2013


On Wed, Jun 19, 2013 at 3:12 PM, Bill Wendling <isanbard at gmail.com> wrote:
> Author: void
> Date: Wed Jun 19 17:12:11 2013
> New Revision: 184374
>
> URL: http://llvm.org/viewvc/llvm-project?rev=184374&view=rev
> Log:
> Make this static inline to avoid duplicates.

You don't need the 'static' in C++, just 'inline'.

> Modified:
>     llvm/trunk/include/llvm/Target/TargetOptions.h
>
> Modified: llvm/trunk/include/llvm/Target/TargetOptions.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetOptions.h?rev=184374&r1=184373&r2=184374&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Target/TargetOptions.h (original)
> +++ llvm/trunk/include/llvm/Target/TargetOptions.h Wed Jun 19 17:12:11 2013
> @@ -209,7 +209,7 @@ namespace llvm {
>
>  bool operator==(const TargetOptions &LHS, const TargetOptions &RHS);
>
> -bool operator!=(const TargetOptions &LHS, const TargetOptions &RHS) {
> +static inline bool operator!=(const TargetOptions &LHS, const TargetOptions &RHS) {
>    return !(LHS == RHS);
>  }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list