OSDN Git Service

[NVPTX] Initial adaptation of MCAsmStreamer/MCTargetStreamer for debug info in Cuda.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 20 Dec 2017 14:55:10 +0000 (14:55 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 20 Dec 2017 14:55:10 +0000 (14:55 +0000)
commit5215706cc87058fc6e8a8eabc5f4e078d3283e7e
tree87fc210e236ad500967821d85424951b8b12f696
parentea38b36e4128370730d6de74081a527ed0a958a7
[NVPTX] Initial adaptation of MCAsmStreamer/MCTargetStreamer for debug info in Cuda.

Summary:
Initial changes in interfaces of MCAsmStreamer/MCTargetStreamer for
correct debug info emission for Cuda.
1. PTX foramt does not support `.ascii` directives. Added the ability to
nullify it.
2. The initial function label must follow the first debug `.loc`
directive, not be followed by.
3. DWARF sections must be enclosed in braces.

Reviewers: hfinkel, probinson, jlebar, rafael, echristo

Subscribers: sdardis, nemanjai, llvm-commits, aprantl

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321178 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmInfo.h
include/llvm/MC/MCStreamer.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCStreamer.cpp