summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/include
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/examples/Kaleidoscope/include')
-rw-r--r--llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
index 79d39515625..d2154887852 100644
--- a/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
+++ b/llvm/examples/Kaleidoscope/include/KaleidoscopeJIT.h
@@ -88,7 +88,7 @@ private:
}
JITSymbol findMangledSymbol(const std::string &Name) {
-#ifdef LLVM_ON_WIN32
+#ifdef _WIN32
// The symbol lookup of ObjectLinkingLayer uses the SymbolRef::SF_Exported
// flag to decide whether a symbol will be visible or not, when we call
// IRCompileLayer::findSymbolIn with ExportedSymbolsOnly set to true.
@@ -112,7 +112,7 @@ private:
if (auto SymAddr = RTDyldMemoryManager::getSymbolAddressInProcess(Name))
return JITSymbol(SymAddr, JITSymbolFlags::Exported);
-#ifdef LLVM_ON_WIN32
+#ifdef _WIN32
// For Windows retry without "_" at beginning, as RTDyldMemoryManager uses
// GetProcAddress and standard libraries like msvcrt.dll use names
// with and without "_" (for example "_itoa" but "sin").
OpenPOWER on IntegriCloud