mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 05:23:45 +02:00
[lli] Simplify the code a bit. No functional change intended.
llvm-svn: 286555
This commit is contained in:
parent
ab65fc85e7
commit
a63f173ebb
@ -161,9 +161,7 @@ uint32_t COFFObjectFile::getSymbolAlignment(DataRefImpl Ref) const {
|
||||
// MSVC/link.exe seems to align symbols to the next-power-of-2
|
||||
// up to 32 bytes.
|
||||
COFFSymbolRef Symb = getCOFFSymbol(Ref);
|
||||
uint32_t Value = Symb.getValue();
|
||||
return std::min(uint64_t(32),
|
||||
isPowerOf2_64(Value) ? Value : NextPowerOf2(Value));
|
||||
return std::min(uint64_t(32), PowerOf2Ceil(Symb.getValue()));
|
||||
}
|
||||
|
||||
Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const {
|
||||
|
Loading…
Reference in New Issue
Block a user