LLDB mainline
Classes | Macros | Functions | Variables
IRDynamicChecks.cpp File Reference
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/raw_ostream.h"
#include "IRDynamicChecks.h"
#include "lldb/Expression/UtilityFunction.h"
#include "lldb/Target/ExecutionContext.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h"

Go to the source code of this file.

Classes

class  Instrumenter
 Finds and instruments individual LLVM IR instructions. More...
 
class  ValidPointerChecker
 
class  ObjcObjectChecker
 

Macros

#define VALID_POINTER_CHECK_NAME   "_$__lldb_valid_pointer_check"
 
#define VALID_OBJC_OBJECT_CHECK_NAME   "$__lldb_objc_object_check"
 

Functions

static std::string PrintValue (llvm::Value *V, bool truncate=false)
 

Variables

static char ID
 
static const char g_valid_pointer_check_text []
 

Macro Definition Documentation

◆ VALID_OBJC_OBJECT_CHECK_NAME

#define VALID_OBJC_OBJECT_CHECK_NAME   "$__lldb_objc_object_check"

Definition at line 36 of file IRDynamicChecks.cpp.

◆ VALID_POINTER_CHECK_NAME

#define VALID_POINTER_CHECK_NAME   "_$__lldb_valid_pointer_check"

Definition at line 35 of file IRDynamicChecks.cpp.

Function Documentation

◆ PrintValue()

static std::string PrintValue ( llvm::Value *  V,
bool  truncate = false 
)
static

Definition at line 93 of file IRDynamicChecks.cpp.

Variable Documentation

◆ g_valid_pointer_check_text

const char g_valid_pointer_check_text[]
static
Initial value:
=
"extern \"C\" void\n"
"_$__lldb_valid_pointer_check (unsigned char *$__lldb_arg_ptr)\n"
"{\n"
" unsigned char $__lldb_local_val = *$__lldb_arg_ptr;\n"
"}"

Definition at line 38 of file IRDynamicChecks.cpp.

Referenced by lldb_private::ClangDynamicCheckerFunctions::Install().

◆ ID

char ID
static

Definition at line 33 of file IRDynamicChecks.cpp.