[llvm] 78ceb39 - GOFFObjectFile.cpp: Suppress a warning in -Asserts (D98437)
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 19:34:23 PDT 2023
Author: NAKAMURA Takumi
Date: 2023-04-29T11:33:41+09:00
New Revision: 78ceb39b0171a07b7c5922e8861d1f9837188ac0
URL: https://github.com/llvm/llvm-project/commit/78ceb39b0171a07b7c5922e8861d1f9837188ac0
DIFF: https://github.com/llvm/llvm-project/commit/78ceb39b0171a07b7c5922e8861d1f9837188ac0.diff
LOG: GOFFObjectFile.cpp: Suppress a warning in -Asserts (D98437)
Added:
Modified:
llvm/lib/Object/GOFFObjectFile.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/GOFFObjectFile.cpp b/llvm/lib/Object/GOFFObjectFile.cpp
index cc11272ca4d7d..7193fd019d2df 100644
--- a/llvm/lib/Object/GOFFObjectFile.cpp
+++ b/llvm/lib/Object/GOFFObjectFile.cpp
@@ -105,13 +105,15 @@ GOFFObjectFile::GOFFObjectFile(MemoryBufferRef Object, Error &Err)
continue;
}
+#ifndef NDEBUG
for (size_t J = 0; J < GOFF::RecordLength; ++J) {
const uint8_t *P = I + J;
if (J % 8 == 0)
- LLVM_DEBUG(dbgs() << " ");
+ dbgs() << " ";
- LLVM_DEBUG(dbgs() << format("%02hhX", *P));
+ dbgs() << format("%02hhX", *P);
}
+#endif
switch (RecordType) {
case GOFF::RT_ESD: {
// Save ESD record.
More information about the llvm-commits
mailing list