summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-03-08 21:29:17 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-03-08 21:29:17 +0000
commita8b3eb46b57d2a6e50e1352b7c590d2338c5c2e8 (patch)
tree10d3200a6a5d52ba5656c5cee5a35b8251337954 /llvm/lib/Target/NVPTX
parent529e0d2ea447ba9d40f3e3ac632f3018fb881373 (diff)
downloadbcm5719-llvm-a8b3eb46b57d2a6e50e1352b7c590d2338c5c2e8.tar.gz
bcm5719-llvm-a8b3eb46b57d2a6e50e1352b7c590d2338c5c2e8.zip
[NVPTX][DEBUGINFO]Temp workaround for crash of ptxas: disable packed bytes in debug sections.
Summary: This patch works around the bug in the ptxas tool with the processing of bytes separated by the comma symbol. The emission of the packed string is temporarily disabled. Reviewers: tra Subscribers: jholewinski, jdoerfert, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59148 llvm-svn: 355740
Diffstat (limited to 'llvm/lib/Target/NVPTX')
-rw-r--r--llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp b/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
index 94959a5078c..17f5ba7d900 100644
--- a/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
+++ b/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
@@ -102,6 +102,11 @@ void NVPTXTargetStreamer::changeSection(const MCSection *CurSection,
}
void NVPTXTargetStreamer::emitRawBytes(StringRef Data) {
+ MCTargetStreamer::emitRawBytes(Data);
+ // TODO: enable this once the bug in the ptxas with the packed bytes is
+ // resolved. Currently, (it is confirmed by NVidia) it causes a crash in
+ // ptxas.
+#if 0
const MCAsmInfo *MAI = Streamer.getContext().getAsmInfo();
const char *Directive = MAI->getData8bitsDirective();
unsigned NumElements = Data.size();
@@ -125,5 +130,6 @@ void NVPTXTargetStreamer::emitRawBytes(StringRef Data) {
}
Streamer.EmitRawText(OS.str());
}
+#endif
}
OpenPOWER on IntegriCloud