OSDN Git Service

Revert "[DEBUGINFO, NVPTX] Enable support for the debug info on NVPTX target."
authorHaojian Wu <hokein@google.com>
Wed, 23 Jan 2019 16:39:57 +0000 (16:39 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 23 Jan 2019 16:39:57 +0000 (16:39 +0000)
commitef7a8ec9b9b5feec30cb1cdad2d929298cf8974b
treecac0622278025d550b775296405ca96391ca2f02
parent6b6a90fb8512840679035c82d0be6aa9cd777b2c
Revert "[DEBUGINFO, NVPTX] Enable support for the debug info on NVPTX target."

This reverts commit r351846.

This patch may generate illegal assembly code, see

```
$ ./bin/clang -cc1 -triple nvptx64-nvidia-cuda -aux-triple x86_64-grtev4-linux-gnu -S -disable-free -disable-llvm-verifier -discard-value-names -main-file-name new.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -fmerge-all-constants -mdisable-fp-elim -relaxed-aliasing -no-integrated-as -mpie-copy-relocations -munwind-tables -fcuda-is-device -target-feature +ptx60 -target-cpu sm_35 -dwarf-column-info -debug-info-kind=line-directives-only -dwarf-version=2 -debugger-tuning=gdb -o empty.s -x cuda empty.cc
$  cat empty.s
//
// Generated by LLVM NVPTX Back-End
//

.version 6.0
.target sm_35
.address_size 64

}
```

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351966 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
test/DebugInfo/NVPTX/cu-range-hole.ll
test/DebugInfo/NVPTX/dbg-declare-alloca.ll
test/DebugInfo/NVPTX/debug-file-loc.ll
test/DebugInfo/NVPTX/debug-info.ll
test/DebugInfo/NVPTX/debug-loc-offset.ll