1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

[Orc] Fix MSVC bugs introduced in r250749.

llvm-svn: 250758
This commit is contained in:
Lang Hames 2015-10-19 23:23:17 +00:00
parent ba820b0689
commit 3bafd4d772

View File

@ -67,13 +67,20 @@ private:
std::set<const Function*> StubsToClone;
std::unique_ptr<IndirectStubsMgrT> StubsMgr;
LogicalModuleResources() {}
LogicalModuleResources() = default;
// Explicit move constructor to make MSVC happy.
LogicalModuleResources(LogicalModuleResources &&Other) = default;
LogicalModuleResources(LogicalModuleResources &&Other)
: SourceModule(std::move(Other.SourceModule)),
StubsToClone(std::move(Other.StubsToClone)),
StubsMgr(std::move(Other.StubsMgr)) {}
// Explicit move assignment to make MSVC happy.
LogicalModuleResources& operator=(LogicalModuleResources &&Other) = default;
LogicalModuleResources& operator=(LogicalModuleResources &&Other) {
SourceModule = std::move(Other.SourceModule);
StubsToClone = std::move(Other.StubsToClone);
StubsMgr = std::move(Other.StubsMgr);
}
JITSymbol findSymbol(StringRef Name, bool ExportedSymbolsOnly) {
if (Name.endswith("$stub_ptr") && !ExportedSymbolsOnly) {