projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb2969
)
There is no reason to #define fd
author
Chris Lattner
<sabre@nondot.org>
Sun, 8 Feb 2004 19:33:07 +0000
(19:33 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 8 Feb 2004 19:33:07 +0000
(19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11190
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/JIT/JITEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/JIT/JITEmitter.cpp
b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 8da50919fd3b2c50d9d4ba6737e288d97e799256..2bead72272d04bec755fd1a16e7a3281a77e5597 100644
(file)
--- a/
lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/
lib/ExecutionEngine/JIT/JITEmitter.cpp
@@
-72,10
+72,9
@@
static void *getMemory(unsigned NumBytes) {
abort();
#endif
+ int fd = -1;
#if defined(__linux__)
-#define fd 0
-#else
-#define fd -1
+ fd = 0;
#endif
unsigned mmapFlags = MAP_PRIVATE|MAP_ANONYMOUS;