Index: include/llvm/ADT/BitVector.h =================================================================== --- include/llvm/ADT/BitVector.h +++ include/llvm/ADT/BitVector.h @@ -14,13 +14,13 @@ #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 #include #include +#include #include +#include namespace llvm { @@ -69,7 +69,7 @@ } operator bool() const { - return ((*WordRef) & (BitWord(1) << BitPos)) ? true : false; + return ((*WordRef) & (BitWord(1) << BitPos)) != 0; } }; @@ -576,7 +576,7 @@ return X.getMemorySize(); } -} // End llvm namespace +} // end namespace llvm namespace std { /// Implement std::swap in terms of BitVector swap. @@ -584,6 +584,6 @@ swap(llvm::BitVector &LHS, llvm::BitVector &RHS) { LHS.swap(RHS); } -} +} // end namespace std -#endif +#endif // LLVM_ADT_BITVECTOR_H Index: include/llvm/ExecutionEngine/Orc/RPCChannel.h =================================================================== --- include/llvm/ExecutionEngine/Orc/RPCChannel.h +++ include/llvm/ExecutionEngine/Orc/RPCChannel.h @@ -1,4 +1,15 @@ -// -*- 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 @@ -6,10 +17,15 @@ #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 +#include #include -#include +#include +#include +#include namespace llvm { namespace orc { @@ -146,7 +162,7 @@ if (auto Err = C.readBytes(reinterpret_cast(&VN), 1)) return Err; - V = (VN != 0) ? true : false; + V = (VN != 0); return Error::success(); } @@ -234,4 +250,4 @@ } // end namespace orc } // end namespace llvm -#endif +#endif // LLVM_EXECUTIONENGINE_ORC_RPCCHANNEL_H Index: include/llvm/Support/FileSystem.h =================================================================== --- include/llvm/Support/FileSystem.h +++ include/llvm/Support/FileSystem.h @@ -29,13 +29,15 @@ #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 +#include #include -#include #include #include #include @@ -263,7 +265,7 @@ }; bool is_object() const { - return V == unknown ? false : true; + return V != unknown; } file_magic() : V(unknown) {} @@ -762,7 +764,7 @@ 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 @@ -824,7 +826,7 @@ uint16_t Level; bool HasNoPushRequest; }; -} +} // end namespace detail /// recursive_directory_iterator - Same as directory_iterator except for it /// recurses down into child directories. @@ -923,4 +925,4 @@ } // end namespace sys } // end namespace llvm -#endif +#endif // LLVM_SUPPORT_FILESYSTEM_H