OSDN Git Service

[LCG] Hoist the definitions of the stream operator friends to be inline
authorChandler Carruth <chandlerc@gmail.com>
Thu, 7 Jul 2016 07:52:07 +0000 (07:52 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 7 Jul 2016 07:52:07 +0000 (07:52 +0000)
commit954c015f8a1c7ba74da53d6b1451d1c4212bf348
tree0321234a3dd05e81a1cdc05138cc7cadbaef9827
parenta609ccd0b59f3021c98257449c7b5ec7ed707557
[LCG] Hoist the definitions of the stream operator friends to be inline
friend definitions.

Based on the experiments Sean Silva and Reid did, this seems the safest
course of action and also will work around a questionable warning
provided by GCC6 on the old form of the code. Thanks for Davide pointing
out the issue and other suggesting ways to fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274740 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LazyCallGraph.h
lib/Analysis/LazyCallGraph.cpp