#ifndef LLVM_ADT_BITVECTOR_H
#define LLVM_ADT_BITVECTOR_H
-#include "llvm/Support/Compiler.h"
-#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <cassert>
#include <climits>
+#include <cstdint>
#include <cstdlib>
+#include <cstring>
namespace llvm {
}
operator bool() const {
- return ((*WordRef) & (BitWord(1) << BitPos)) ? true : false;
+ return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
}
};
return X.getMemorySize();
}
-} // End llvm namespace
+} // end namespace llvm
namespace std {
/// Implement std::swap in terms of BitVector swap.
swap(llvm::BitVector &LHS, llvm::BitVector &RHS) {
LHS.swap(RHS);
}
-}
+} // end namespace std
-#endif
+#endif // LLVM_ADT_BITVECTOR_H
-// -*- c++ -*-
+//===- llvm/ExecutionEngine/Orc/RPCChannel.h --------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
#ifndef LLVM_EXECUTIONENGINE_ORC_RPCCHANNEL_H
#define LLVM_EXECUTIONENGINE_ORC_RPCCHANNEL_H
#include "OrcError.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Endian.h"
-
+#include "llvm/Support/Error.h"
+#include <cstddef>
+#include <cstdint>
#include <mutex>
-#include <system_error>
+#include <string>
+#include <tuple>
+#include <vector>
namespace llvm {
namespace orc {
if (auto Err = C.readBytes(reinterpret_cast<char *>(&VN), 1))
return Err;
- V = (VN != 0) ? true : false;
+ V = (VN != 0);
return Error::success();
}
} // end namespace orc
} // end namespace llvm
-#endif
+#endif // LLVM_EXECUTIONENGINE_ORC_RPCCHANNEL_H
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/TimeValue.h"
+#include <cassert>
+#include <cstdint>
#include <ctime>
-#include <iterator>
#include <stack>
#include <string>
#include <system_error>
};
bool is_object() const {
- return V == unknown ? false : true;
+ return V != unknown;
}
file_magic() : V(unknown) {}
intptr_t IterationHandle;
directory_entry CurrentEntry;
};
-}
+} // end namespace detail
/// directory_iterator - Iterates through the entries in path. There is no
/// operator++ because we need an error_code. If it's really needed we can make
uint16_t Level;
bool HasNoPushRequest;
};
-}
+} // end namespace detail
/// recursive_directory_iterator - Same as directory_iterator except for it
/// recurses down into child directories.
} // end namespace sys
} // end namespace llvm
-#endif
+#endif // LLVM_SUPPORT_FILESYSTEM_H