Clean up ProfileDataLoader a bit.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 31 Aug 2012 12:43:07 +0000 (12:43 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 31 Aug 2012 12:43:07 +0000 (12:43 +0000)
commitcb5f63d7fa717b67a666712a3a0d7eebd4d8fb8b
tree902c405f9367fcf6881f7e9fb68dded28f18d0fc
parent2a1b0e786487fefbafc05478bc49056309ce9fb7
Clean up ProfileDataLoader a bit.

- Overloading operator<< for raw_ostream and pointers is dangerous, it alters
  the behavior of code that includes the header.
- Remove unused ID.
- Use LLVM's byte swapping helpers instead of a hand-coded.
- Make ReadProfilingData work directly on a pointer.

No functionality change.

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