summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitcf3e3017c832014b81816f38911dd03ea6c851ce (patch)
tree3ff330a2d6d9a1f7f498ebd3016b55df46840ede /llvm/lib/ExecutionEngine
parent6f2db7238b9ec9911c95928e47b635e1e369e254 (diff)
downloadbcm5719-llvm-cf3e3017c832014b81816f38911dd03ea6c851ce.tar.gz
bcm5719-llvm-cf3e3017c832014b81816f38911dd03ea6c851ce.zip
Avoid a warning about isTargetNullPtr being unused in release builds.
llvm-svn: 55350
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index aae0cf7823e..2a7b914ac34 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud