aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-12-08 21:49:03 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-12-08 21:49:03 +0000
commite5089e2e94796650115baf8e6d1db380003ad07d (patch)
treedf7ee3834a08299901c5429701fcce702fe3a710 /llvm/lib/CodeGen/MachineOperand.cpp
parent471001a7b4371a955650b3d60dc371a78c0f1b61 (diff)
downloadllvm-e5089e2e94796650115baf8e6d1db380003ad07d.zip
llvm-e5089e2e94796650115baf8e6d1db380003ad07d.tar.gz
llvm-e5089e2e94796650115baf8e6d1db380003ad07d.tar.bz2
[CodeExtractor] Add debug locations for new call and branch instrs.
Summary: If a partially inlined function has debug info, we have to add debug locations to the call instruction calling the outlined function. We use the debug location of the first instruction in the outlined function, as the introduced call transfers control to this statement and there is no other equivalent line in the source code. We also use the same debug location for the branch instruction added to jump from artificial entry block for the outlined function, which just jumps to the first actual basic block of the outlined function. Reviewers: davide, aprantl, rriddle, dblaikie, danielcdh, wmi Reviewed By: aprantl, rriddle, danielcdh Subscribers: eraman, JDevlieghere, llvm-commits Differential Revision: https://reviews.llvm.org/D40413 llvm-svn: 320199
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions