[globalisel][irtranslator] Verify that DILocations aren't lost in translation
authorDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 31 Oct 2018 17:31:23 +0000 (17:31 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 31 Oct 2018 17:31:23 +0000 (17:31 +0000)
commit3b39040ad44d921e1b273fe3bbfeeaa280d0cb8f
tree308307ea74548871217ec6dc84661ae67532ba48
parent93f1859682f775c0f23974b3a6019c7511fc20c5
[globalisel][irtranslator] Verify that DILocations aren't lost in translation

Summary:
Also fix a couple bugs where DILocations are lost. EntryBuilder wasn't passing
on debug locations for PHI's, constants, GLOBAL_VALUE, etc.

Reviewers: aprantl, vsk, bogner, aditya_nandakumar, volkan, rtereshin, aemerson

Reviewed By: aemerson

Subscribers: aemerson, rovka, kristof.beyls, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D53740

llvm-svn: 345743
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-dilocation.ll [new file with mode: 0644]