From b6e3d6ce709e9ed57df055b026e55d19e50df772 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 26 Aug 2008 01:38:29 +0000 Subject: 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 --- lib/ExecutionEngine/ExecutionEngine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp') diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index aae0cf7823..2a7b914ac3 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, -- cgit v1.2.3-18-g5258