[llvm] a14c955 - [ORC] Remove some stale debugging output.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 30 15:43:26 PST 2020
Author: Lang Hames
Date: 2020-12-31T10:34:38+11:00
New Revision: a14c955af8602e450d75f4049eaa153387961ae1
URL: https://github.com/llvm/llvm-project/commit/a14c955af8602e450d75f4049eaa153387961ae1
DIFF: https://github.com/llvm/llvm-project/commit/a14c955af8602e450d75f4049eaa153387961ae1.diff
LOG: [ORC] Remove some stale debugging output.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h b/llvm/include/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h
index f90b71db108b..3f96fe3da49d 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Shared/FDRawByteChannel.h
@@ -15,9 +15,6 @@
#include "llvm/ExecutionEngine/Orc/Shared/RawByteChannel.h"
-#include "llvm/Support/FormatVariadic.h"
-#include "llvm/Support/raw_ostream.h"
-
#if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h>
#else
@@ -34,13 +31,11 @@ class FDRawByteChannel final : public RawByteChannel {
FDRawByteChannel(int InFD, int OutFD) : InFD(InFD), OutFD(OutFD) {}
llvm::Error readBytes(char *Dst, unsigned Size) override {
- // dbgs() << "Reading " << Size << " bytes: [";
assert(Dst && "Attempt to read into null.");
ssize_t Completed = 0;
while (Completed < static_cast<ssize_t>(Size)) {
ssize_t Read = ::read(InFD, Dst + Completed, Size - Completed);
if (Read <= 0) {
- // dbgs() << " <<<\n";
auto ErrNo = errno;
if (ErrNo == EAGAIN || ErrNo == EINTR)
continue;
@@ -48,22 +43,17 @@ class FDRawByteChannel final : public RawByteChannel {
return llvm::errorCodeToError(
std::error_code(errno, std::generic_category()));
}
- // for (size_t I = 0; I != Read; ++I)
- // dbgs() << " " << formatv("{0:x2}", Dst[Completed + I]);
Completed += Read;
}
- // dbgs() << " ]\n";
return llvm::Error::success();
}
llvm::Error appendBytes(const char *Src, unsigned Size) override {
- // dbgs() << "Appending " << Size << " bytes: [";
assert(Src && "Attempt to append from null.");
ssize_t Completed = 0;
while (Completed < static_cast<ssize_t>(Size)) {
ssize_t Written = ::write(OutFD, Src + Completed, Size - Completed);
if (Written < 0) {
- // dbgs() << " <<<\n";
auto ErrNo = errno;
if (ErrNo == EAGAIN || ErrNo == EINTR)
continue;
@@ -71,11 +61,8 @@ class FDRawByteChannel final : public RawByteChannel {
return llvm::errorCodeToError(
std::error_code(errno, std::generic_category()));
}
- // for (size_t I = 0; I != Written; ++I)
- // dbgs() << " " << formatv("{0:x2}", Src[Completed + I]);
Completed += Written;
}
- // dbgs() << " ]\n";
return llvm::Error::success();
}
More information about the llvm-commits
mailing list