|
9 | 9 | #include "llvm/ADT/STLExtras.h"
|
10 | 10 | #include "llvm/ExecutionEngine/JITLink/JITLink.h"
|
11 | 11 | #include "llvm/ExecutionEngine/JITLink/aarch64.h"
|
12 |
| -#include "llvm/ExecutionEngine/JITLink/i386.h" |
13 | 12 | #include "llvm/ExecutionEngine/JITLink/loongarch.h"
|
| 13 | +#include "llvm/ExecutionEngine/JITLink/x86.h" |
14 | 14 | #include "llvm/ExecutionEngine/JITLink/x86_64.h"
|
15 | 15 | #include "llvm/ExecutionEngine/Orc/ObjectFileInterface.h"
|
16 | 16 | #include "llvm/Support/Memory.h"
|
@@ -96,19 +96,19 @@ TEST(StubsTest, StubsGeneration_aarch64) {
|
96 | 96 | ArrayRef<char>(PointerJumpStubContent));
|
97 | 97 | }
|
98 | 98 |
|
99 |
| -TEST(StubsTest, StubsGeneration_i386) { |
| 99 | +TEST(StubsTest, StubsGeneration_x86) { |
100 | 100 | const char PointerJumpStubContent[6] = {
|
101 | 101 | static_cast<char>(0xFFu), 0x25, 0x00, 0x00, 0x00, 0x00};
|
102 | 102 | LinkGraph G("foo", std::make_shared<orc::SymbolStringPool>(),
|
103 | 103 | Triple("i386-unknown-linux-gnu"), SubtargetFeatures(),
|
104 | 104 | getGenericEdgeKindName);
|
105 |
| - auto [PointerSym, StubSym] = GenerateStub(G, 4U, i386::Pointer32); |
| 105 | + auto [PointerSym, StubSym] = GenerateStub(G, 4U, x86::Pointer32); |
106 | 106 |
|
107 | 107 | EXPECT_EQ(std::distance(StubSym.getBlock().edges().begin(),
|
108 | 108 | StubSym.getBlock().edges().end()),
|
109 | 109 | 1U);
|
110 | 110 | auto &JumpEdge = *StubSym.getBlock().edges().begin();
|
111 |
| - EXPECT_EQ(JumpEdge.getKind(), i386::Pointer32); |
| 111 | + EXPECT_EQ(JumpEdge.getKind(), x86::Pointer32); |
112 | 112 | EXPECT_EQ(&JumpEdge.getTarget(), &PointerSym);
|
113 | 113 | EXPECT_EQ(StubSym.getBlock().getContent(),
|
114 | 114 | ArrayRef<char>(PointerJumpStubContent));
|
|
0 commit comments