Inliner: Use replaceDbgDeclareForAlloca() instead of splicing the
authorAdrian Prantl <aprantl@apple.com>
Fri, 30 Jan 2015 19:37:48 +0000 (19:37 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 30 Jan 2015 19:37:48 +0000 (19:37 +0000)
commit88deac4007026656588f7ef5bf6e8de0d7be87f3
treef0038d51514a2f0c4e22ca0e16dc5e29223524c2
parent7a3c3f3a968b4dbc7e620b2c42558df5a112002c
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
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Utils/InlineFunction.cpp
lib/Transforms/Utils/Local.cpp
test/Transforms/Inline/alloca-dbgdeclare.ll
test/Transforms/Inline/inline_dbg_declare.ll