================ @@ -0,0 +1,182 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#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" + +using namespace llvm; + +namespace { + +struct PtrAuthFixup { + GlobalVariable *GV; + ConstantPtrAuth *CPA; + SmallVector<unsigned, 4> Indices; +}; + +/// Recursively walk a constant looking for ConstantPtrAuth expressions. +/// When found, record the global variable containing it and the index path +/// to reach it within the initializer. +void findPtrAuth(Constant *C, GlobalVariable &GV, ---------------- DavidSpickett wrote:
Unless it needs to be in there to be able to reference PtrAuthFixup? https://github.com/llvm/llvm-project/pull/186001 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
