LLDB mainline
InjectPointerSigningFixups.cpp File Reference
#include "InjectPointerSigningFixups.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Triple.h"

Go to the source code of this file.

Namespaces

namespace  lldb_private
 A class that represents a running process on the host machine.

Functions

static void findPtrAuth (Constant *C, GlobalVariable &GV, SmallVectorImpl< unsigned > &Indices, SmallVectorImpl< PtrAuthFixup > &Fixups)
 Recursively walk a constant looking for ConstantPtrAuth expressions.
Error lldb_private::InjectPointerSigningFixupCode (llvm::Module &M, ExecutionPolicy execution_policy)

Function Documentation

◆ findPtrAuth()

void findPtrAuth ( Constant * C,
GlobalVariable & GV,
SmallVectorImpl< unsigned > & Indices,
SmallVectorImpl< PtrAuthFixup > & Fixups )
static

Recursively walk a constant looking for ConstantPtrAuth expressions.

When found, record the global variable containing the ConstantPtrAuth and the index path to reach it within the initializer.

Definition at line 61 of file InjectPointerSigningFixups.cpp.

References findPtrAuth().

Referenced by findPtrAuth(), and lldb_private::InjectPointerSigningFixupCode().