This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Split GetMaxVirtualAddress into separate Linux version and Mac version [NFC]
ClosedPublic

Authored by kubamracek on Jul 5 2017, 1:44 PM.

Details

Summary

The logic in GetMaxVirtualAddress is already pretty complex, and I want to get rid of the hardcoded value for iOS/AArch64, which would need adding more Darwin-specific code, so let's split the implementation into sanitizer_linux.cc and sanitizer_mac.cc files. NFC.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek created this revision.Jul 5 2017, 1:44 PM
eugenis accepted this revision.Jul 5 2017, 4:50 PM
This revision is now accepted and ready to land.Jul 5 2017, 4:50 PM
This revision was automatically updated to reflect the committed changes.

Fixup in r307282.

More Linux fixup: r307284