Object: Clean up COFF.h

The file violated the coding standard.  Make it conform.

No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Majnemer
2014-03-19 02:37:19 +00:00
parent 695043fb48
commit 75141e6c47

View File

@@ -19,8 +19,7 @@
#include "llvm/Support/Endian.h"
namespace llvm {
template <typename T>
class ArrayRef;
template <typename T> class ArrayRef;
namespace object {
class ImportDirectoryEntryRef;
@@ -200,13 +199,9 @@ struct coff_symbol {
support::ulittle8_t StorageClass;
support::ulittle8_t NumberOfAuxSymbols;
uint8_t getBaseType() const {
return Type & 0x0F;
}
uint8_t getBaseType() const { return Type & 0x0F; }
uint8_t getComplexType() const {
return (Type & 0xF0) >> 4;
}
uint8_t getComplexType() const { return (Type & 0xF0) >> 4; }
};
struct coff_section {
@@ -337,9 +332,11 @@ protected:
error_code getRelocationOffset(DataRefImpl Rel, uint64_t &Res) const override;
symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
error_code getRelocationType(DataRefImpl Rel, uint64_t &Res) const override;
error_code getRelocationTypeName(DataRefImpl Rel,
error_code
getRelocationTypeName(DataRefImpl Rel,
SmallVectorImpl<char> &Result) const override;
error_code getRelocationValueString(DataRefImpl Rel,
error_code
getRelocationValueString(DataRefImpl Rel,
SmallVectorImpl<char> &Result) const override;
error_code getLibraryNext(DataRefImpl LibData,
@@ -395,9 +392,7 @@ public:
error_code getRvaPtr(uint32_t Rva, uintptr_t &Res) const;
error_code getHintName(uint32_t Rva, uint16_t &Hint, StringRef &Name) const;
static inline bool classof(const Binary *v) {
return v->isCOFF();
}
static inline bool classof(const Binary *v) { return v->isCOFF(); }
};
// The iterator for the import directory table.