mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Inliner: Use replaceDbgDeclareForAlloca() instead of splicing the
instruction and generalize it to optionally dereference the variable. Follow-up to r227544. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -274,10 +274,11 @@ bool LowerDbgDeclare(Function &F);
|
||||
/// an alloca, if any.
|
||||
DbgDeclareInst *FindAllocaDbgDeclare(Value *V);
|
||||
|
||||
/// replaceDbgDeclareForAlloca - Replaces llvm.dbg.declare instruction when
|
||||
/// alloca is replaced with a new value.
|
||||
/// \brief Replaces llvm.dbg.declare instruction when an alloca is replaced with
|
||||
/// a new value. If Deref is true, tan additional DW_OP_deref is prepended to
|
||||
/// the expression.
|
||||
bool replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress,
|
||||
DIBuilder &Builder);
|
||||
DIBuilder &Builder, bool Deref);
|
||||
|
||||
/// \brief Remove all blocks that can not be reached from the function's entry.
|
||||
///
|
||||
|
Reference in New Issue
Block a user