diff options
author | Momchil Velikov <momchil.velikov@arm.com> | 2018-02-07 20:28:47 +0000 |
---|---|---|
committer | Momchil Velikov <momchil.velikov@arm.com> | 2018-02-07 20:28:47 +0000 |
commit | 74906a467c4a50243c79b8a39004b06b0bd42bbe (patch) | |
tree | 411984342a3d5e8e138466fb70745a5a2a5637c9 /llvm/lib/IR/AsmWriter.cpp | |
parent | cd8d6de381d391a16e41257839baf5b7702289d0 (diff) | |
download | bcm5719-llvm-74906a467c4a50243c79b8a39004b06b0bd42bbe.tar.gz bcm5719-llvm-74906a467c4a50243c79b8a39004b06b0bd42bbe.zip |
Revert "[DebugInfo] Improvements to representation of enumeration types (PR36168)"
Revert commit r324489, it broke LLDB tests.
llvm-svn: 324511
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 444a3419350..d641a63c21d 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -1629,13 +1629,7 @@ static void writeDIEnumerator(raw_ostream &Out, const DIEnumerator *N, Out << "!DIEnumerator("; MDFieldPrinter Printer(Out); Printer.printString("name", N->getName(), /* ShouldSkipEmpty */ false); - if (N->isUnsigned()) { - auto Value = static_cast<uint64_t>(N->getValue()); - Printer.printInt("value", Value, /* ShouldSkipZero */ false); - Printer.printBool("isUnsigned", true); - } else { - Printer.printInt("value", N->getValue(), /* ShouldSkipZero */ false); - } + Printer.printInt("value", N->getValue(), /* ShouldSkipZero */ false); Out << ")"; } |