Fix a missing includes and a use of the MSVC promise/future workaround that

were left out of r343011/r343012.

llvm-svn: 343022
This commit is contained in:
Lang Hames 2018-09-25 20:16:06 +00:00
parent 7fb39dfa7c
commit ffa72ef903
3 changed files with 11 additions and 2 deletions

View File

@ -25,6 +25,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ExecutionEngine/Orc/OrcError.h"
#include "llvm/ExecutionEngine/Orc/RPCSerialization.h"
#include "llvm/Support/MSVCErrorWorkarounds.h"
#include <future>

View File

@ -19,6 +19,7 @@
#include "RuntimeDyldMachO.h"
#include "llvm/Object/COFF.h"
#include "llvm/Object/ELFObjectFile.h"
#include "llvm/Support/MSVCErrorWorkarounds.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MutexGuard.h"

View File

@ -14,6 +14,7 @@
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/MSVCErrorWorkarounds.h"
#include "llvm/Support/Path.h"
#include <cctype>
#include <future>
@ -732,8 +733,14 @@ bool RuntimeDyldCheckerImpl::checkAllRulesInBuffer(StringRef RulePrefix,
Expected<JITSymbolResolver::LookupResult> RuntimeDyldCheckerImpl::lookup(
const JITSymbolResolver::LookupSet &Symbols) const {
auto ResultP = std::make_shared<
std::promise<Expected<JITSymbolResolver::LookupResult>>>();
#ifdef _MSC_VER
using ExpectedLookupResult = MSVCPExpected<JITSymbolResolver::LooupResult>;
#else
using ExpectedLookupResult = Expected<JITSymbolResolver::LookupResult>;
#endif
auto ResultP = std::make_shared<std::promise<ExpectedLookupResult>>();
auto ResultF = ResultP->get_future();
getRTDyld().Resolver.lookup(