mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Improve llvm.dbg.declare intrinsic by referring directly to the storage in its first argument, via function-local metadata (instead of via a bitcast).
This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93504 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -491,7 +491,6 @@ namespace llvm {
|
||||
Module &M;
|
||||
LLVMContext& VMContext;
|
||||
|
||||
const Type *EmptyStructPtr; // "{}*".
|
||||
Function *DeclareFn; // llvm.dbg.declare
|
||||
Function *ValueFn; // llvm.dbg.value
|
||||
|
||||
@@ -659,7 +658,7 @@ namespace llvm {
|
||||
|
||||
/// Finds the dbg.declare intrinsic corresponding to this value if any.
|
||||
/// It looks through pointer casts too.
|
||||
const DbgDeclareInst *findDbgDeclare(const Value *V, bool stripCasts = true);
|
||||
const DbgDeclareInst *findDbgDeclare(const Value *V);
|
||||
|
||||
/// Find the debug info descriptor corresponding to this global variable.
|
||||
Value *findDbgGlobalDeclare(GlobalVariable *V);
|
||||
|
Reference in New Issue
Block a user