[LoopAccesses] Make raw_string_ostream local in VectorizationReport
authorAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:42:15 +0000 (03:42 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 18 Feb 2015 03:42:15 +0000 (03:42 +0000)
commitd7aa78535c4cfe140e288ef8b656388877a347a3
tree2012f9490ebdfe191604dc3bf79ea6d7ba30f07c
parent5506e22865a3d2d029dd717a15bfc8158eb5f4e9
[LoopAccesses] Make raw_string_ostream local in VectorizationReport

Since VectorizationReport will be part of the result of the analysis it
will be stored in a container.  However, one of its members is a
raw_string_ostream which cannot be copy-constructed.

This makes the raw_string_ostream local to the << operator.

This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229620 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h