Index: llvm/trunk/include/llvm/DebugInfo/CodeView/TypeStream.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/CodeView/TypeStream.h +++ llvm/trunk/include/llvm/DebugInfo/CodeView/TypeStream.h @@ -10,15 +10,18 @@ #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPESTREAM_H #define LLVM_DEBUGINFO_CODEVIEW_TYPESTREAM_H +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/iterator_range.h" #include "llvm/ADT/StringRef.h" #include "llvm/DebugInfo/CodeView/CodeView.h" #include "llvm/DebugInfo/CodeView/RecordIterator.h" #include "llvm/Object/Error.h" #include "llvm/Support/Endian.h" - -#include +#include +#include namespace llvm { + class APSInt; namespace codeview { @@ -69,4 +72,4 @@ } // end namespace codeview } // end namespace llvm -#endif +#endif // LLVM_DEBUGINFO_CODEVIEW_TYPESTREAM_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/ByteStream.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/ByteStream.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/ByteStream.h @@ -11,16 +11,17 @@ #define LLVM_DEBUGINFO_PDB_RAW_BYTESTREAM_H #include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/StringRef.h" #include "llvm/DebugInfo/PDB/Raw/StreamInterface.h" - -#include - -#include -#include +#include "llvm/Support/Error.h" +#include +#include namespace llvm { namespace pdb { + class StreamReader; + class ByteStream : public StreamInterface { public: ByteStream(); @@ -48,7 +49,8 @@ MutableArrayRef Data; std::unique_ptr Ownership; }; -} -} -#endif +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_BYTESTREAM_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/MappedBlockStream.h @@ -10,15 +10,15 @@ #ifndef LLVM_DEBUGINFO_PDB_RAW_MAPPEDBLOCKSTREAM_H #define LLVM_DEBUGINFO_PDB_RAW_MAPPEDBLOCKSTREAM_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/DebugInfo/PDB/Raw/StreamInterface.h" - -#include - -#include +#include "llvm/Support/Error.h" +#include #include namespace llvm { namespace pdb { + class PDBFile; class MappedBlockStream : public StreamInterface { @@ -37,7 +37,8 @@ std::vector BlockList; const PDBFile &Pdb; }; -} -} -#endif +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_MAPPEDBLOCKSTREAM_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/ModInfo.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/ModInfo.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/ModInfo.h @@ -11,12 +11,12 @@ #define LLVM_DEBUGINFO_PDB_RAW_MODINFO_H #include "llvm/ADT/StringRef.h" - -#include +#include #include namespace llvm { namespace pdb { + class ModInfo { private: struct FileLayout; @@ -64,7 +64,8 @@ private: const uint8_t *Bytes; }; -} -} -#endif +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_MODINFO_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h @@ -10,17 +10,18 @@ #ifndef LLVM_DEBUGINFO_PDB_RAW_NAMEHASHTABLE_H #define LLVM_DEBUGINFO_PDB_RAW_NAMEHASHTABLE_H -#include "llvm/ADT/StringMap.h" +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" #include "llvm/DebugInfo/PDB/Raw/ByteStream.h" #include "llvm/Support/Error.h" - -#include -#include +#include +#include namespace llvm { namespace pdb { + class StreamReader; + class NameHashTable { public: NameHashTable(); @@ -43,7 +44,8 @@ uint32_t HashVersion; uint32_t NameCount; }; -} -} -#endif +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_NAMEHASHTABLE_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/NameMap.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/NameMap.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/NameMap.h @@ -13,13 +13,13 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Error.h" - -#include -#include +#include namespace llvm { namespace pdb { + class StreamReader; + class NameMap { public: NameMap(); @@ -31,7 +31,8 @@ private: StringMap Mapping; }; -} -} -#endif \ No newline at end of file +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_PDBNAMEMAP_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/RawConstants.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/RawConstants.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/RawConstants.h @@ -10,10 +10,11 @@ #ifndef LLVM_DEBUGINFO_PDB_RAW_PDBRAWCONSTANTS_H #define LLVM_DEBUGINFO_PDB_RAW_PDBRAWCONSTANTS_H -#include +#include namespace llvm { namespace pdb { + enum PdbRaw_ImplVer : uint32_t { PdbImplVC2 = 19941610, PdbImplVC4 = 19950623, @@ -49,7 +50,8 @@ StreamDBI = 3, StreamIPI = 4, }; -} -} -#endif +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_PDBRAWCONSTANTS_H Index: llvm/trunk/include/llvm/DebugInfo/PDB/Raw/StreamInterface.h =================================================================== --- llvm/trunk/include/llvm/DebugInfo/PDB/Raw/StreamInterface.h +++ llvm/trunk/include/llvm/DebugInfo/PDB/Raw/StreamInterface.h @@ -11,12 +11,12 @@ #define LLVM_DEBUGINFO_PDB_RAW_STREAMINTERFACE_H #include "llvm/ADT/ArrayRef.h" -#include "llvm/DebugInfo/PDB/Raw/RawError.h" - -#include +#include "llvm/Support/Error.h" +#include namespace llvm { namespace pdb { + class StreamInterface { public: virtual ~StreamInterface() {} @@ -28,7 +28,8 @@ virtual uint32_t getLength() const = 0; }; -} -} -#endif +} // end namespace pdb +} // end namespace llvm + +#endif // LLVM_DEBUGINFO_PDB_RAW_STREAMINTERFACE_H Index: llvm/trunk/include/llvm/Object/ELFObjectFile.h =================================================================== --- llvm/trunk/include/llvm/Object/ELFObjectFile.h +++ llvm/trunk/include/llvm/Object/ELFObjectFile.h @@ -14,18 +14,27 @@ #ifndef LLVM_OBJECT_ELFOBJECTFILE_H #define LLVM_OBJECT_ELFOBJECTFILE_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/StringRef.h" #include "llvm/ADT/Triple.h" +#include "llvm/ADT/iterator_range.h" +#include "llvm/Object/Binary.h" #include "llvm/Object/ELF.h" +#include "llvm/Object/ELFTypes.h" +#include "llvm/Object/Error.h" #include "llvm/Object/ObjectFile.h" +#include "llvm/Object/SymbolicFile.h" #include "llvm/Support/Casting.h" #include "llvm/Support/ELF.h" #include "llvm/Support/Endian.h" +#include "llvm/Support/Error.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/ErrorOr.h" #include "llvm/Support/MemoryBuffer.h" -#include -#include -#include +#include +#include +#include namespace llvm { namespace object { @@ -50,8 +59,8 @@ virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0; virtual ErrorOr getRelocationAddend(DataRefImpl Rel) const = 0; -public: +public: typedef iterator_range elf_symbol_iterator_range; virtual elf_symbol_iterator_range getDynamicSymbolIterators() const = 0; @@ -279,11 +288,9 @@ // A symbol is exported if its binding is either GLOBAL or WEAK, and its // visibility is either DEFAULT or PROTECTED. All other symbols are not // exported. - if ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) && - (Visibility == ELF::STV_DEFAULT || Visibility == ELF::STV_PROTECTED)) - return true; - - return false; + return ((Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK) && + (Visibility == ELF::STV_DEFAULT || + Visibility == ELF::STV_PROTECTED)); } // This flag is used for classof, to distinguish ELFObjectFile from @@ -940,7 +947,7 @@ return EF.getHeader()->e_type == ELF::ET_REL; } -} -} +} // end namespace object +} // end namespace llvm -#endif +#endif // LLVM_OBJECT_ELFOBJECTFILE_H Index: llvm/trunk/include/llvm/Support/AtomicOrdering.h =================================================================== --- llvm/trunk/include/llvm/Support/AtomicOrdering.h +++ llvm/trunk/include/llvm/Support/AtomicOrdering.h @@ -18,7 +18,7 @@ #ifndef LLVM_SUPPORT_ATOMICORDERING_H #define LLVM_SUPPORT_ATOMICORDERING_H -#include +#include namespace llvm { @@ -148,6 +148,6 @@ return lookup[(size_t)ao]; } -} // End namespace llvm +} // end namespace llvm -#endif +#endif // LLVM_SUPPORT_ATOMICORDERING_H Index: llvm/trunk/include/llvm/Target/TargetRecip.h =================================================================== --- llvm/trunk/include/llvm/Target/TargetRecip.h +++ llvm/trunk/include/llvm/Target/TargetRecip.h @@ -18,8 +18,8 @@ #define LLVM_TARGET_TARGETRECIP_H #include "llvm/ADT/StringRef.h" +#include #include -#include #include #include @@ -69,6 +69,6 @@ void parseIndividualParams(const std::vector &Args); }; -} // End llvm namespace +} // end namespace llvm -#endif +#endif // LLVM_TARGET_TARGETRECIP_H Index: llvm/trunk/lib/DebugInfo/PDB/Raw/ByteStream.cpp =================================================================== --- llvm/trunk/lib/DebugInfo/PDB/Raw/ByteStream.cpp +++ llvm/trunk/lib/DebugInfo/PDB/Raw/ByteStream.cpp @@ -8,7 +8,9 @@ //===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/Raw/ByteStream.h" +#include "llvm/DebugInfo/PDB/Raw/RawError.h" #include "llvm/DebugInfo/PDB/Raw/StreamReader.h" +#include using namespace llvm; using namespace llvm::pdb; Index: llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp =================================================================== --- llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp +++ llvm/trunk/lib/DebugInfo/Symbolize/DIPrinter.cpp @@ -13,9 +13,19 @@ //===----------------------------------------------------------------------===// #include "llvm/DebugInfo/Symbolize/DIPrinter.h" - +#include "llvm/ADT/StringRef.h" #include "llvm/DebugInfo/DIContext.h" +#include "llvm/Support/ErrorOr.h" +#include "llvm/Support/Format.h" #include "llvm/Support/LineIterator.h" +#include "llvm/Support/MemoryBuffer.h" +#include "llvm/Support/raw_ostream.h" +#include +#include +#include +#include +#include +#include namespace llvm { namespace symbolize { @@ -61,7 +71,7 @@ if (FunctionName == kDILineInfoBadString) FunctionName = kBadString; - StringRef Delimiter = (PrintPretty == true) ? " at " : "\n"; + StringRef Delimiter = PrintPretty ? " at " : "\n"; StringRef Prefix = (PrintPretty && Inlined) ? " (inlined by) " : ""; OS << Prefix << FunctionName << Delimiter; } @@ -97,5 +107,5 @@ return *this; } -} -} +} // end namespace symbolize +} // end namespace llvm