Optimize COFFObjectFile::sectionContainsSymbol a bit.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 20:42:47 +0000 (20:42 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 7 Oct 2014 20:42:47 +0000 (20:42 +0000)
commitfbf9a40f5bb5b82e4df6ffb0d2897775034c82f7
treed52ca39856f496d4d053e7d77d4867ec1f1dca87
parent29890f73dc27ea268f2a80b51c0411cd1405c534
Optimize COFFObjectFile::sectionContainsSymbol a bit.

There is no need to compute the coff_section of the symbol just to compare the
pointer.

Inspired by the ELF implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219233 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/COFFObjectFile.cpp