[DEBUG_INFO, NVPTX] Fix relocation info.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 22 Jan 2019 17:24:16 +0000 (17:24 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 22 Jan 2019 17:24:16 +0000 (17:24 +0000)
commit9d5974a9fc579647e31a8616bf604b6157b21eb1
tree512d9b4c4f191740146e7a1b67200a46e2d01575
parent8e11254132adb95c5ecf90f539c3e865bd16bfa3
[DEBUG_INFO, NVPTX] Fix relocation info.

Summary: Initial function labels must follow the debug location for the correct relocation info generation.

Reviewers: tra, jlebar, echristo

Subscribers: jholewinski, llvm-commits

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

llvm-svn: 351843
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll