diff options
author | Lang Hames <lhames@gmail.com> | 2016-02-02 19:31:15 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-02-02 19:31:15 +0000 |
commit | e28b118be0cde71cb0c4e4c840cf075a9803852e (patch) | |
tree | ae121bf65f6c23e61ae1d4fbbc3f883621735654 /llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp | |
parent | c9911f28e5a8060a439aa475e0a95793b1b1e970 (diff) | |
download | bcm5719-llvm-e28b118be0cde71cb0c4e4c840cf075a9803852e.tar.gz bcm5719-llvm-e28b118be0cde71cb0c4e4c840cf075a9803852e.zip |
[Orc] Turn OrcX86_64::IndirectStubsInfo into a template helper class:
GenericIndirectStubsInfo.
This will allow architecture support classes for other architectures to re-use
this code.
llvm-svn: 259549
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp b/llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp index 01e829f7909..35cb2958f90 100644 --- a/llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp +++ b/llvm/lib/ExecutionEngine/Orc/OrcArchitectureSupport.cpp @@ -161,8 +161,7 @@ std::error_code OrcX86_64::emitIndirectStubsBlock(IndirectStubsInfo &StubsInfo, for (unsigned I = 0; I < NumStubs; ++I) Ptr[I] = InitialPtrVal; - StubsInfo.NumStubs = NumStubs; - StubsInfo.StubsMem = std::move(StubsMem); + StubsInfo = IndirectStubsInfo(NumStubs, std::move(StubsMem)); return std::error_code(); } |