summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-08-02 01:05:47 +0000
committerEric Christopher <echristo@gmail.com>2019-08-02 01:05:47 +0000
commit5a00b0772aba8639a9cdec95c130aa3021e94e30 (patch)
treeddbbb526223bf805bb09b21383a6f65e08bb7a36 /llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
parent975c51c3ff0f83dffb8b01ab06f376924bab7200 (diff)
downloadbcm5719-llvm-5a00b0772aba8639a9cdec95c130aa3021e94e30.tar.gz
bcm5719-llvm-5a00b0772aba8639a9cdec95c130aa3021e94e30.zip
Temporarily revert "Changes to improve CodeView debug info type record inline comments"
due to a sanitizer failure. This reverts commit 367623. llvm-svn: 367640
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp b/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
index 73ff57b9bbd..092099bb0a1 100644
--- a/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
+++ b/llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
@@ -126,11 +126,7 @@ Error CodeViewRecordIO::mapByteVectorTail(std::vector<uint8_t> &Bytes,
Error CodeViewRecordIO::mapInteger(TypeIndex &TypeInd, const Twine &Comment) {
if (isStreaming()) {
- StringRef TypeNameStr = Streamer->getTypeName(TypeInd);
- if (!TypeNameStr.empty())
- emitComment(Comment + ": " + TypeNameStr);
- else
- emitComment(Comment);
+ emitComment(Comment);
Streamer->EmitIntValue(TypeInd.getIndex(), sizeof(TypeInd.getIndex()));
incrStreamedLen(sizeof(TypeInd.getIndex()));
} else if (isWriting()) {
OpenPOWER on IntegriCloud