aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-26 01:38:29 +0000
committerDan Gohman <gohman@apple.com>2008-08-26 01:38:29 +0000
commitc7e1ad0cd3eee21da23d0d7e8c177f4f1c9dfe36 (patch)
tree22ac90b1259a33311d08bbd117e5176a53b348ae /lib/ExecutionEngine
parent79ad39f598f65d76e0d672f5bd822055dac8560c (diff)
downloadexternal_llvm-c7e1ad0cd3eee21da23d0d7e8c177f4f1c9dfe36.zip
external_llvm-c7e1ad0cd3eee21da23d0d7e8c177f4f1c9dfe36.tar.gz
external_llvm-c7e1ad0cd3eee21da23d0d7e8c177f4f1c9dfe36.tar.bz2
Avoid a warning about isTargetNullPtr being unused in release builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index aae0cf7..2a7b914 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -267,6 +267,7 @@ void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) {
}
}
+#ifndef NDEBUG
/// isTargetNullPtr - Return whether the target pointer stored at Loc is null.
static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
unsigned PtrSize = EE->getTargetData()->getPointerSize();
@@ -275,6 +276,7 @@ static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) {
return false;
return true;
}
+#endif
/// runFunctionAsMain - This is a helper function which wraps runFunction to
/// handle the common task of starting up main with the specified argc, argv,