Skip to content

Commit 752ddf3

Browse files
committed
Enable opaque pointers in each spot where we make an LLVM context
1 parent 669166d commit 752ddf3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

bin/lift/Lift.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ int main(int argc, char *argv[]) {
240240
// Make sure `--address` and `--entry_address` are in-bounds for the target
241241
// architecture's address size.
242242
llvm::LLVMContext context;
243+
context.enableOpaquePointers();
243244
auto arch = remill::Arch::Get(context, FLAGS_os, FLAGS_arch);
244245
const uint64_t addr_mask = ~0ULL >> (64UL - arch->address_size);
245246
if (FLAGS_address != (FLAGS_address & addr_mask)) {

tests/AArch64/Lift.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ extern "C" int main(int argc, char *argv[]) {
123123
}
124124

125125
llvm::LLVMContext context;
126+
context.enableOpaquePointers();
126127
auto os_name = remill::GetOSName(REMILL_OS);
127128
auto arch_name = remill::GetArchName(FLAGS_arch);
128129
auto arch = remill::Arch::Build(&context, os_name, arch_name);

tests/X86/Lift.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ extern "C" int main(int argc, char *argv[]) {
123123
}
124124

125125
llvm::LLVMContext context;
126+
context.enableOpaquePointers();
126127
auto os_name = remill::GetOSName(REMILL_OS);
127128
auto arch_name = remill::GetArchName(FLAGS_arch);
128129
auto arch = remill::Arch::Build(&context, os_name, arch_name);

0 commit comments

Comments
 (0)