#include "bolt/Core/BinaryContext.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/Support/TargetSelect.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespacellvm::object;
usingnamespacellvm::ELF;
usingnamespacebolt;
namespace {
struct BinaryContextTester : public testing::TestWithParam<Triple::ArchType> { … };
}
#ifdef X86_AVAILABLE
INSTANTIATE_TEST_SUITE_P(…);
#endif
#ifdef AARCH64_AVAILABLE
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(BinaryContextTester, FlushPendingRelocCALL26) { … }
TEST_P(BinaryContextTester, FlushPendingRelocJUMP26) { … }
#endif
TEST_P(BinaryContextTester, BaseAddress) { … }
TEST_P(BinaryContextTester, BaseAddress2) { … }
TEST_P(BinaryContextTester, BaseAddressSegmentsSmallerThanAlignment) { … }