summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2012-04-25 09:36:12 -0700
committerShih-wei Liao <sliao@google.com>2012-04-25 12:07:33 -0700
commitabe0db302735bbdf9cd84caee2a36e6c4538fc4d (patch)
tree2104010e5d0ba7ee5e08d7edb8cf0b3c59696a43
parent5140768057912f114de11cdeabfbd4a61ce832cf (diff)
downloadmclinker-jb-dev.tar.gz
Change-Id: Ia4eacfcdc43edf93d568984a23ccc94887af3b1a
-rw-r--r--include/mcld/ADT/HashBase.h1
-rw-r--r--include/mcld/ADT/HashBase.tcc1
-rw-r--r--include/mcld/ADT/HashEntry.h1
-rw-r--r--include/mcld/ADT/HashEntry.tcc1
-rw-r--r--include/mcld/ADT/HashTable.h5
-rw-r--r--include/mcld/ADT/HashTable.tcc1
-rw-r--r--include/mcld/ADT/SizeTraits.h1
-rw-r--r--include/mcld/ADT/StringHash.h13
-rw-r--r--include/mcld/ADT/TreeAllocator.h3
-rw-r--r--include/mcld/ADT/TypeTraits.h1
-rw-r--r--include/mcld/ADT/Uncopyable.h1
-rw-r--r--include/mcld/CodeGen/SectLinker.h1
-rw-r--r--include/mcld/LD/ArchiveReader.h1
-rw-r--r--include/mcld/LD/BSDArchiveReader.h1
-rw-r--r--include/mcld/LD/BranchIsland.h1
-rw-r--r--include/mcld/LD/DynObjFileFormat.h1
-rw-r--r--include/mcld/LD/DynObjReader.h1
-rw-r--r--include/mcld/LD/DynObjWriter.h1
-rw-r--r--include/mcld/LD/ELFDynObjFileFormat.h1
-rw-r--r--include/mcld/LD/ELFDynObjReader.h1
-rw-r--r--include/mcld/LD/ELFDynObjWriter.h1
-rw-r--r--include/mcld/LD/ELFExecFileFormat.h1
-rw-r--r--include/mcld/LD/ELFFileFormat.h1
-rw-r--r--include/mcld/LD/ELFObjectReader.h1
-rw-r--r--include/mcld/LD/ELFObjectWriter.h1
-rw-r--r--include/mcld/LD/ELFReader.h1
-rw-r--r--include/mcld/LD/ELFReader.tcc1
-rw-r--r--include/mcld/LD/ELFSegment.h1
-rw-r--r--include/mcld/LD/ELFSegmentFactory.h1
-rw-r--r--include/mcld/LD/ELFWriter.h1
-rw-r--r--include/mcld/LD/GNUArchiveReader.h1
-rw-r--r--include/mcld/LD/Group.h1
-rw-r--r--include/mcld/LD/InputSymbolTable.h1
-rw-r--r--include/mcld/LD/LDContext.h1
-rw-r--r--include/mcld/LD/LDFileFormat.h1
-rw-r--r--include/mcld/LD/LDReader.h1
-rw-r--r--include/mcld/LD/LDSection.h1
-rw-r--r--include/mcld/LD/LDSectionFactory.h1
-rw-r--r--include/mcld/LD/LDSymbol.h5
-rw-r--r--include/mcld/LD/LDWriter.h1
-rw-r--r--include/mcld/LD/Layout.h1
-rw-r--r--include/mcld/LD/ObjectReader.h1
-rw-r--r--include/mcld/LD/ObjectWriter.h1
-rw-r--r--include/mcld/LD/OutputSymbolTable.h1
-rw-r--r--include/mcld/LD/Relocation.h1
-rw-r--r--include/mcld/LD/RelocationFactory.h1
-rw-r--r--include/mcld/LD/ResolveInfo.h1
-rw-r--r--include/mcld/LD/ResolveInfoFactory.h1
-rw-r--r--include/mcld/LD/Resolver.h1
-rw-r--r--include/mcld/LD/SectionMap.h1
-rw-r--r--include/mcld/LD/SectionMerger.h1
-rw-r--r--include/mcld/LD/StaticResolver.h3
-rw-r--r--include/mcld/LD/StrSymPool.h3
-rw-r--r--include/mcld/LD/StringUnorderedMap.h1
-rw-r--r--include/mcld/LD/SymbolTableFactory.h13
-rw-r--r--lib/Target/Mips/MipsELFSectLinker.h1
-rw-r--r--lib/Target/Mips/MipsGOT.cpp1
-rw-r--r--lib/Target/Mips/MipsGOT.h1
-rw-r--r--lib/Target/Mips/MipsLDBackend.h3
-rw-r--r--lib/Target/X86/X86.h1
-rw-r--r--lib/Target/X86/X86AndroidSectLinker.cpp4
-rw-r--r--lib/Target/X86/X86ELFDynamic.cpp13
-rw-r--r--lib/Target/X86/X86GOT.cpp1
-rw-r--r--lib/Target/X86/X86GOT.h1
-rw-r--r--lib/Target/X86/X86GOTPLT.h1
-rw-r--r--lib/Target/X86/X86LDBackend.h1
-rw-r--r--lib/Target/X86/X86PLT.cpp1
-rw-r--r--lib/Target/X86/X86RelocationFactory.h1
-rw-r--r--lib/Target/X86/X86SectLinker.cpp1
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp1
70 files changed, 25 insertions, 100 deletions
diff --git a/include/mcld/ADT/HashBase.h b/include/mcld/ADT/HashBase.h
index 76410ab..36d825b 100644
--- a/include/mcld/ADT/HashBase.h
+++ b/include/mcld/ADT/HashBase.h
@@ -136,4 +136,3 @@ protected:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/HashBase.tcc b/include/mcld/ADT/HashBase.tcc
index 62d92b1..35b40e3 100644
--- a/include/mcld/ADT/HashBase.tcc
+++ b/include/mcld/ADT/HashBase.tcc
@@ -247,4 +247,3 @@ void HashTableImpl<HashEntryTy, HashFunctionTy>::doRehash(unsigned int pNewSize)
m_NumOfBuckets = pNewSize;
m_NumOfTombstones = 0;
}
-
diff --git a/include/mcld/ADT/HashEntry.h b/include/mcld/ADT/HashEntry.h
index c034783..bc15ecb 100644
--- a/include/mcld/ADT/HashEntry.h
+++ b/include/mcld/ADT/HashEntry.h
@@ -92,4 +92,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/HashEntry.tcc b/include/mcld/ADT/HashEntry.tcc
index fdd886b..f397f23 100644
--- a/include/mcld/ADT/HashEntry.tcc
+++ b/include/mcld/ADT/HashEntry.tcc
@@ -50,4 +50,3 @@ EntryFactory<HashEntryTy>::produce(const typename EntryFactory<HashEntryTy>::key
{
return new HashEntryTy(pKey);
}
-
diff --git a/include/mcld/ADT/HashTable.h b/include/mcld/ADT/HashTable.h
index dfc2f5a..16d87f5 100644
--- a/include/mcld/ADT/HashTable.h
+++ b/include/mcld/ADT/HashTable.h
@@ -64,7 +64,7 @@ public:
// ----- constructor ----- //
explicit HashTable(size_type pSize=3);
~HashTable();
-
+
EntryFactoryTy& getEntryFactory()
{ return m_EntryFactory; }
@@ -89,7 +89,7 @@ public:
const_iterator find(const key_type& pKey) const;
size_type count(const key_type& pKey) const;
-
+
// ----- hash policy ----- //
float load_factor() const;
@@ -123,4 +123,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/HashTable.tcc b/include/mcld/ADT/HashTable.tcc
index 6fb05a3..885d737 100644
--- a/include/mcld/ADT/HashTable.tcc
+++ b/include/mcld/ADT/HashTable.tcc
@@ -265,4 +265,3 @@ HashTable<HashEntryTy, HashFunctionTy, EntryFactoryTy>::end(
{
return const_chain_iterator();
}
-
diff --git a/include/mcld/ADT/SizeTraits.h b/include/mcld/ADT/SizeTraits.h
index 8d307bd..7e67db9 100644
--- a/include/mcld/ADT/SizeTraits.h
+++ b/include/mcld/ADT/SizeTraits.h
@@ -99,4 +99,3 @@ inline uint64_t bswap64(uint64_t pData)
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/StringHash.h b/include/mcld/ADT/StringHash.h
index f100a49..cf6276d 100644
--- a/include/mcld/ADT/StringHash.h
+++ b/include/mcld/ADT/StringHash.h
@@ -78,7 +78,7 @@ struct StringHash<JS> : public std::unary_function<const llvm::StringRef&, size_
for(unsigned int i = 0; i < pKey.size(); ++i) {
hash_val ^= ((hash_val << 5) + pKey[i] + (hash_val >> 2));
- }
+ }
return hash_val;
}
};
@@ -123,7 +123,7 @@ struct StringHash<ELF> : public std::unary_function<const llvm::StringRef&, size
for (unsigned int i = 0; i < pKey.size(); ++i) {
hash_val = (hash_val << 4) + pKey[i];
if((x = hash_val & 0xF0000000L) != 0)
- hash_val ^= (x >> 24);
+ hash_val ^= (x >> 24);
hash_val &= ~x;
}
return hash_val;
@@ -140,7 +140,7 @@ struct StringHash<BKDR> : public std::unary_function<const llvm::StringRef&, siz
{
const size_t seed = 131;
size_t hash_val = 0;
-
+
for(size_t i = 0; i < pKey.size(); ++i)
hash_val = (hash_val * seed) + pKey[i];
return hash_val;
@@ -248,13 +248,13 @@ struct StringHash<AP> : public std::unary_function<const llvm::StringRef&, size_
size_t operator()(const llvm::StringRef& pKey) const
{
unsigned int hash_val = 0xAAAAAAAA;
-
- for(size_t i = 0; i < pKey.size(); ++i) {
+
+ for(size_t i = 0; i < pKey.size(); ++i) {
hash_val ^= ((i & 1) == 0)?
((hash_val << 7) ^ pKey[i] * (hash_val >> 3)):
(~((hash_val << 11) + (pKey[i] ^ (hash_val >> 5))));
}
-
+
return hash_val;
}
};
@@ -286,4 +286,3 @@ struct StringCompare<char*> : public std::binary_function<const char*, const cha
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/TreeAllocator.h b/include/mcld/ADT/TreeAllocator.h
index 899896c..fc95bf7 100644
--- a/include/mcld/ADT/TreeAllocator.h
+++ b/include/mcld/ADT/TreeAllocator.h
@@ -27,7 +27,7 @@ namespace mcld
* NodeFactory provides delegation of memory. Sometimes, we have to merge two
* NodeFactories, and NodeFactory::delegate() can move the memory from one
* NodeFactories to another.
- *
+ *
* @see LinearAllocator
*/
template<typename DataType>
@@ -95,4 +95,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/TypeTraits.h b/include/mcld/ADT/TypeTraits.h
index 90b2224..c24c4ae 100644
--- a/include/mcld/ADT/TypeTraits.h
+++ b/include/mcld/ADT/TypeTraits.h
@@ -68,4 +68,3 @@ struct NonConstIteratorTraits
} // namespace of mcld
#endif
-
diff --git a/include/mcld/ADT/Uncopyable.h b/include/mcld/ADT/Uncopyable.h
index 7ddfbe3..d98c939 100644
--- a/include/mcld/ADT/Uncopyable.h
+++ b/include/mcld/ADT/Uncopyable.h
@@ -33,4 +33,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/CodeGen/SectLinker.h b/include/mcld/CodeGen/SectLinker.h
index 31fae4a..cbc7214 100644
--- a/include/mcld/CodeGen/SectLinker.h
+++ b/include/mcld/CodeGen/SectLinker.h
@@ -104,4 +104,3 @@ namespace mcld
} // namespace of MC Linker
#endif
-
diff --git a/include/mcld/LD/ArchiveReader.h b/include/mcld/LD/ArchiveReader.h
index 99db0db..14a27e2 100644
--- a/include/mcld/LD/ArchiveReader.h
+++ b/include/mcld/LD/ArchiveReader.h
@@ -36,4 +36,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/BSDArchiveReader.h b/include/mcld/LD/BSDArchiveReader.h
index a275621..26add69 100644
--- a/include/mcld/LD/BSDArchiveReader.h
+++ b/include/mcld/LD/BSDArchiveReader.h
@@ -36,4 +36,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/BranchIsland.h b/include/mcld/LD/BranchIsland.h
index 8e5cf9c..9f13692 100644
--- a/include/mcld/LD/BranchIsland.h
+++ b/include/mcld/LD/BranchIsland.h
@@ -27,4 +27,3 @@ class BranchIsland
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/DynObjFileFormat.h b/include/mcld/LD/DynObjFileFormat.h
index 7b1626d..6a25184 100644
--- a/include/mcld/LD/DynObjFileFormat.h
+++ b/include/mcld/LD/DynObjFileFormat.h
@@ -26,4 +26,3 @@ class DynObjFormat : public LDFileFormat
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/DynObjReader.h b/include/mcld/LD/DynObjReader.h
index 0900109..c3b4099 100644
--- a/include/mcld/LD/DynObjReader.h
+++ b/include/mcld/LD/DynObjReader.h
@@ -42,4 +42,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/DynObjWriter.h b/include/mcld/LD/DynObjWriter.h
index 1c77bd4..08bb237 100644
--- a/include/mcld/LD/DynObjWriter.h
+++ b/include/mcld/LD/DynObjWriter.h
@@ -38,4 +38,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFDynObjFileFormat.h b/include/mcld/LD/ELFDynObjFileFormat.h
index 9b77e91..02d7103 100644
--- a/include/mcld/LD/ELFDynObjFileFormat.h
+++ b/include/mcld/LD/ELFDynObjFileFormat.h
@@ -35,4 +35,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFDynObjReader.h b/include/mcld/LD/ELFDynObjReader.h
index 72a3336..7fdcc23 100644
--- a/include/mcld/LD/ELFDynObjReader.h
+++ b/include/mcld/LD/ELFDynObjReader.h
@@ -48,4 +48,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFDynObjWriter.h b/include/mcld/LD/ELFDynObjWriter.h
index dc0e37b..7cfac05 100644
--- a/include/mcld/LD/ELFDynObjWriter.h
+++ b/include/mcld/LD/ELFDynObjWriter.h
@@ -50,4 +50,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFExecFileFormat.h b/include/mcld/LD/ELFExecFileFormat.h
index 315300a..a6544fa 100644
--- a/include/mcld/LD/ELFExecFileFormat.h
+++ b/include/mcld/LD/ELFExecFileFormat.h
@@ -35,4 +35,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFFileFormat.h b/include/mcld/LD/ELFFileFormat.h
index 94d3df3..1706a66 100644
--- a/include/mcld/LD/ELFFileFormat.h
+++ b/include/mcld/LD/ELFFileFormat.h
@@ -651,4 +651,3 @@ protected:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFObjectReader.h b/include/mcld/LD/ELFObjectReader.h
index ac11261..635da85 100644
--- a/include/mcld/LD/ELFObjectReader.h
+++ b/include/mcld/LD/ELFObjectReader.h
@@ -56,4 +56,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFObjectWriter.h b/include/mcld/LD/ELFObjectWriter.h
index a6b9a87..e534a58 100644
--- a/include/mcld/LD/ELFObjectWriter.h
+++ b/include/mcld/LD/ELFObjectWriter.h
@@ -44,4 +44,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFReader.h b/include/mcld/LD/ELFReader.h
index cac0175..3acbf25 100644
--- a/include/mcld/LD/ELFReader.h
+++ b/include/mcld/LD/ELFReader.h
@@ -221,4 +221,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFReader.tcc b/include/mcld/LD/ELFReader.tcc
index 693a780..862b971 100644
--- a/include/mcld/LD/ELFReader.tcc
+++ b/include/mcld/LD/ELFReader.tcc
@@ -529,4 +529,3 @@ bool ELFReader<32, true>::readRel(Input& pInput,
}
return true;
}
-
diff --git a/include/mcld/LD/ELFSegment.h b/include/mcld/LD/ELFSegment.h
index 24f9458..312f0a7 100644
--- a/include/mcld/LD/ELFSegment.h
+++ b/include/mcld/LD/ELFSegment.h
@@ -160,4 +160,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFSegmentFactory.h b/include/mcld/LD/ELFSegmentFactory.h
index 5dd55cb..7b5e305 100644
--- a/include/mcld/LD/ELFSegmentFactory.h
+++ b/include/mcld/LD/ELFSegmentFactory.h
@@ -40,4 +40,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ELFWriter.h b/include/mcld/LD/ELFWriter.h
index e9db7f5..51834d1 100644
--- a/include/mcld/LD/ELFWriter.h
+++ b/include/mcld/LD/ELFWriter.h
@@ -119,4 +119,3 @@ protected:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/GNUArchiveReader.h b/include/mcld/LD/GNUArchiveReader.h
index 57aee10..8beac2c 100644
--- a/include/mcld/LD/GNUArchiveReader.h
+++ b/include/mcld/LD/GNUArchiveReader.h
@@ -83,4 +83,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/Group.h b/include/mcld/LD/Group.h
index 31c4a68..c5ce827 100644
--- a/include/mcld/LD/Group.h
+++ b/include/mcld/LD/Group.h
@@ -25,4 +25,3 @@ class Group
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/InputSymbolTable.h b/include/mcld/LD/InputSymbolTable.h
index c5e3864..c1614dd 100644
--- a/include/mcld/LD/InputSymbolTable.h
+++ b/include/mcld/LD/InputSymbolTable.h
@@ -43,4 +43,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/LDContext.h b/include/mcld/LD/LDContext.h
index 878ba8d..a9cc978 100644
--- a/include/mcld/LD/LDContext.h
+++ b/include/mcld/LD/LDContext.h
@@ -102,4 +102,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/LDFileFormat.h b/include/mcld/LD/LDFileFormat.h
index df80f67..511471a 100644
--- a/include/mcld/LD/LDFileFormat.h
+++ b/include/mcld/LD/LDFileFormat.h
@@ -110,4 +110,3 @@ protected:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/LDReader.h b/include/mcld/LD/LDReader.h
index 4fde9f0..cb1e454 100644
--- a/include/mcld/LD/LDReader.h
+++ b/include/mcld/LD/LDReader.h
@@ -44,4 +44,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/LDSection.h b/include/mcld/LD/LDSection.h
index 4c793de..460c479 100644
--- a/include/mcld/LD/LDSection.h
+++ b/include/mcld/LD/LDSection.h
@@ -202,4 +202,3 @@ private:
} // end namespace mcld
#endif
-
diff --git a/include/mcld/LD/LDSectionFactory.h b/include/mcld/LD/LDSectionFactory.h
index 49b11c7..8495924 100644
--- a/include/mcld/LD/LDSectionFactory.h
+++ b/include/mcld/LD/LDSectionFactory.h
@@ -55,4 +55,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/LDSymbol.h b/include/mcld/LD/LDSymbol.h
index 45c0b75..eabd05b 100644
--- a/include/mcld/LD/LDSymbol.h
+++ b/include/mcld/LD/LDSymbol.h
@@ -95,7 +95,7 @@ public:
ResolveInfo* resolveInfo()
{ return m_pResolveInfo; }
- const ResolveInfo* resolveInfo() const
+ const ResolveInfo* resolveInfo() const
{ return m_pResolveInfo; }
bool hasFragRef() const
@@ -109,7 +109,7 @@ public:
void setValue(ValueType pValue)
{ m_Value = pValue; }
-
+
void setFragmentRef(MCFragmentRef* pFragmentRef);
void setResolveInfo(const ResolveInfo& pInfo);
@@ -125,4 +125,3 @@ private:
} // namespace mcld
#endif
-
diff --git a/include/mcld/LD/LDWriter.h b/include/mcld/LD/LDWriter.h
index 78c2871..415c5c1 100644
--- a/include/mcld/LD/LDWriter.h
+++ b/include/mcld/LD/LDWriter.h
@@ -38,4 +38,3 @@ public:
} //end namespace
#endif
-
diff --git a/include/mcld/LD/Layout.h b/include/mcld/LD/Layout.h
index 28f2d83..ea0d971 100644
--- a/include/mcld/LD/Layout.h
+++ b/include/mcld/LD/Layout.h
@@ -267,4 +267,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ObjectReader.h b/include/mcld/LD/ObjectReader.h
index 9dbe9ac..bd49d5e 100644
--- a/include/mcld/LD/ObjectReader.h
+++ b/include/mcld/LD/ObjectReader.h
@@ -66,4 +66,3 @@ protected:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ObjectWriter.h b/include/mcld/LD/ObjectWriter.h
index 0c48723..d10bfdc 100644
--- a/include/mcld/LD/ObjectWriter.h
+++ b/include/mcld/LD/ObjectWriter.h
@@ -36,4 +36,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/OutputSymbolTable.h b/include/mcld/LD/OutputSymbolTable.h
index fdcf0bc..1494ab7 100644
--- a/include/mcld/LD/OutputSymbolTable.h
+++ b/include/mcld/LD/OutputSymbolTable.h
@@ -41,4 +41,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/Relocation.h b/include/mcld/LD/Relocation.h
index 09ff6e4..9f7a117 100644
--- a/include/mcld/LD/Relocation.h
+++ b/include/mcld/LD/Relocation.h
@@ -112,4 +112,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/RelocationFactory.h b/include/mcld/LD/RelocationFactory.h
index eed3eae..357c2d3 100644
--- a/include/mcld/LD/RelocationFactory.h
+++ b/include/mcld/LD/RelocationFactory.h
@@ -78,4 +78,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ResolveInfo.h b/include/mcld/LD/ResolveInfo.h
index f48f1c2..70e4f27 100644
--- a/include/mcld/LD/ResolveInfo.h
+++ b/include/mcld/LD/ResolveInfo.h
@@ -276,4 +276,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/ResolveInfoFactory.h b/include/mcld/LD/ResolveInfoFactory.h
index fcadf48..13a26b6 100644
--- a/include/mcld/LD/ResolveInfoFactory.h
+++ b/include/mcld/LD/ResolveInfoFactory.h
@@ -34,4 +34,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/Resolver.h b/include/mcld/LD/Resolver.h
index 98dfe2c..8596eeb 100644
--- a/include/mcld/LD/Resolver.h
+++ b/include/mcld/LD/Resolver.h
@@ -97,4 +97,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/SectionMap.h b/include/mcld/LD/SectionMap.h
index 424d785..77e7e21 100644
--- a/include/mcld/LD/SectionMap.h
+++ b/include/mcld/LD/SectionMap.h
@@ -102,4 +102,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/SectionMerger.h b/include/mcld/LD/SectionMerger.h
index 40f1453..a1c2a10 100644
--- a/include/mcld/LD/SectionMerger.h
+++ b/include/mcld/LD/SectionMerger.h
@@ -95,4 +95,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/StaticResolver.h b/include/mcld/LD/StaticResolver.h
index 5bf5c5d..6275c59 100644
--- a/include/mcld/LD/StaticResolver.h
+++ b/include/mcld/LD/StaticResolver.h
@@ -75,7 +75,7 @@ private:
w_D = ResolveInfo::weak_flag | ResolveInfo::regular_flag | ResolveInfo::define_flag,
d_D = ResolveInfo::global_flag | ResolveInfo::dynamic_flag | ResolveInfo::define_flag,
wd_D = ResolveInfo::weak_flag | ResolveInfo::dynamic_flag | ResolveInfo::define_flag,
- C = ResolveInfo::global_flag | ResolveInfo::regular_flag | ResolveInfo::common_flag,
+ C = ResolveInfo::global_flag | ResolveInfo::regular_flag | ResolveInfo::common_flag,
w_C = ResolveInfo::weak_flag | ResolveInfo::regular_flag | ResolveInfo::common_flag,
d_C = ResolveInfo::global_flag | ResolveInfo::dynamic_flag | ResolveInfo::common_flag,
wd_C = ResolveInfo::weak_flag | ResolveInfo::dynamic_flag | ResolveInfo::common_flag,
@@ -142,4 +142,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/StrSymPool.h b/include/mcld/LD/StrSymPool.h
index da5ed1f..0550a4c 100644
--- a/include/mcld/LD/StrSymPool.h
+++ b/include/mcld/LD/StrSymPool.h
@@ -57,7 +57,7 @@ public:
ResolveInfo::Binding pBinding,
ResolveInfo::SizeType pSize,
ResolveInfo::Visibility pVisibility = ResolveInfo::Default);
-
+
/// insertSymbol - insert a symbol and resolve the symbol immediately
/// @param pOldInfo - if pOldInfo is not NULL, the old ResolveInfo being
/// overriden is kept in pOldInfo.
@@ -108,4 +108,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/StringUnorderedMap.h b/include/mcld/LD/StringUnorderedMap.h
index 05788aa..7453c9f 100644
--- a/include/mcld/LD/StringUnorderedMap.h
+++ b/include/mcld/LD/StringUnorderedMap.h
@@ -222,4 +222,3 @@ StringUnorderedMapImpl::~StringUnorderedMapImpl()
} // namespace of mcld
#endif
-
diff --git a/include/mcld/LD/SymbolTableFactory.h b/include/mcld/LD/SymbolTableFactory.h
index cc02241..6196603 100644
--- a/include/mcld/LD/SymbolTableFactory.h
+++ b/include/mcld/LD/SymbolTableFactory.h
@@ -23,9 +23,9 @@ class StrSymPool;
/** \class SymbolTableFactory
* \brief SymbolTableFactory manages SymbolTableIFs.
*
- * SymbolTableFactory is responsed for construction and destruction of
- * SymbolTableIF. Since different MCLDFiles have different type of
- * SymbolTableIF, SymbolTableFactory separates the construction of
+ * SymbolTableFactory is responsed for construction and destruction of
+ * SymbolTableIF. Since different MCLDFiles have different type of
+ * SymbolTableIF, SymbolTableFactory separates the construction of
* SymbolTableIF into createInputTable() and createOutputTable().
*
* @see SymbolTableIF InputSymbolTable OutputSymbolTable
@@ -34,7 +34,7 @@ class SymbolTableFactory
{
public:
/// SymbolTableFactory - constructor
- // @param pNumOfSymbolTables is the most appropriate number of created
+ // @param pNumOfSymbolTables is the most appropriate number of created
// symbol tables.
// @param pStorage the real storage of created symbols
explicit SymbolTableFactory(size_t pNumOfSymbolTables,
@@ -46,7 +46,7 @@ public:
/// createInputTable - create a symbol table for an input file
// @param pEntireStringTable the string table of created Symbols.
// @param pDynamicStringTable the string table of created Dynamic Symbols.
- // @param pReserve Created symbol table must reserve pReserve number of
+ // @param pReserve Created symbol table must reserve pReserve number of
// storages of symbol for creating symbols.
SymbolTableIF *createInputTable(StringTable &pEntireStringTable,
StringTable &pDynamicStringTable,
@@ -55,7 +55,7 @@ public:
/// createOutputTable - create a symbol table for an output file
// @param pEntireStringTable the string table of created Symbols.
// @param pDynamicStringTable the string table of created Dynamic Symbols.
- // @param pReserve Created symbol table must reserve pReserve number of
+ // @param pReserve Created symbol table must reserve pReserve number of
// storages of symbol for creating symbols.
SymbolTableIF *createOutputTable(StringTable &pEntireStringTable,
StringTable &pDynamicStringTable,
@@ -70,4 +70,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/Mips/MipsELFSectLinker.h b/lib/Target/Mips/MipsELFSectLinker.h
index 82bec4c..949508d 100644
--- a/lib/Target/Mips/MipsELFSectLinker.h
+++ b/lib/Target/Mips/MipsELFSectLinker.h
@@ -31,4 +31,3 @@ public:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/Mips/MipsGOT.cpp b/lib/Target/Mips/MipsGOT.cpp
index f9d5bb4..e1185ca 100644
--- a/lib/Target/Mips/MipsGOT.cpp
+++ b/lib/Target/Mips/MipsGOT.cpp
@@ -145,4 +145,3 @@ size_t MipsGOT::getLocalNum() const
{
return m_pLocalNum;
}
-
diff --git a/lib/Target/Mips/MipsGOT.h b/lib/Target/Mips/MipsGOT.h
index dccc7ac..dc8a23e 100644
--- a/lib/Target/Mips/MipsGOT.h
+++ b/lib/Target/Mips/MipsGOT.h
@@ -64,4 +64,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/Mips/MipsLDBackend.h b/lib/Target/Mips/MipsLDBackend.h
index cd9e3cd..c4f1d46 100644
--- a/lib/Target/Mips/MipsLDBackend.h
+++ b/lib/Target/Mips/MipsLDBackend.h
@@ -186,7 +186,7 @@ private:
bool isGOTSymbol(const LDSymbol& pSymbol) const;
/// emitDynamicSymbol - emit dynamic symbol.
void emitDynamicSymbol(llvm::ELF::Elf32_Sym& sym32,
- Output& pOutput,
+ Output& pOutput,
LDSymbol& pSymbol,
const Layout& pLayout,
char* strtab,
@@ -197,4 +197,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h
index 2d07314..c575d80 100644
--- a/lib/Target/X86/X86.h
+++ b/lib/Target/X86/X86.h
@@ -21,4 +21,3 @@ TargetLDBackend *createX86LDBackend(const llvm::Target&, const std::string&);
} // namespace of mcld
#endif
-
diff --git a/lib/Target/X86/X86AndroidSectLinker.cpp b/lib/Target/X86/X86AndroidSectLinker.cpp
index 91b466c..fe7a2cc 100644
--- a/lib/Target/X86/X86AndroidSectLinker.cpp
+++ b/lib/Target/X86/X86AndroidSectLinker.cpp
@@ -29,7 +29,5 @@ X86AndroidSectLinker::X86AndroidSectLinker(SectLinkerOption &pOption,
}
-X86AndroidSectLinker::~X86AndroidSectLinker()
-{
+X86AndroidSectLinker::~X86AndroidSectLinker() {
}
-
diff --git a/lib/Target/X86/X86ELFDynamic.cpp b/lib/Target/X86/X86ELFDynamic.cpp
index c32cfa8..ee6b1f6 100644
--- a/lib/Target/X86/X86ELFDynamic.cpp
+++ b/lib/Target/X86/X86ELFDynamic.cpp
@@ -13,23 +13,19 @@
using namespace mcld;
X86ELFDynamic::X86ELFDynamic(const GNULDBackend& pParent)
- : ELFDynamic(pParent), m_HasGOTPLT(false)
-{
+ : ELFDynamic(pParent), m_HasGOTPLT(false) {
}
-X86ELFDynamic::~X86ELFDynamic()
-{
+X86ELFDynamic::~X86ELFDynamic() {
}
-void X86ELFDynamic::reserveTargetEntries(const ELFFileFormat& pFormat)
-{
+void X86ELFDynamic::reserveTargetEntries(const ELFFileFormat& pFormat) {
// reservePLTGOT
if (m_HasGOTPLT ? pFormat.hasGOTPLT() : pFormat.hasGOT())
reserveOne(llvm::ELF::DT_PLTGOT);
}
-void X86ELFDynamic::applyTargetEntries(const ELFFileFormat& pFormat)
-{
+void X86ELFDynamic::applyTargetEntries(const ELFFileFormat& pFormat) {
// applyPLTGOT
if (m_HasGOTPLT) {
if (pFormat.hasGOTPLT())
@@ -38,4 +34,3 @@ void X86ELFDynamic::applyTargetEntries(const ELFFileFormat& pFormat)
else if (pFormat.hasGOT())
applyOne(llvm::ELF::DT_PLTGOT, pFormat.getGOT().addr());
}
-
diff --git a/lib/Target/X86/X86GOT.cpp b/lib/Target/X86/X86GOT.cpp
index 2784989..544b5e9 100644
--- a/lib/Target/X86/X86GOT.cpp
+++ b/lib/Target/X86/X86GOT.cpp
@@ -126,4 +126,3 @@ X86GOT::iterator X86GOT::getLastGOT0()
const X86GOT::iterator X86GOT::getLastGOT0() const
{ return m_LastGOT0; }
-
diff --git a/lib/Target/X86/X86GOT.h b/lib/Target/X86/X86GOT.h
index 018aa24..37b48a3 100644
--- a/lib/Target/X86/X86GOT.h
+++ b/lib/Target/X86/X86GOT.h
@@ -88,4 +88,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/X86/X86GOTPLT.h b/lib/Target/X86/X86GOTPLT.h
index 9882cc4..04bfad0 100644
--- a/lib/Target/X86/X86GOTPLT.h
+++ b/lib/Target/X86/X86GOTPLT.h
@@ -67,4 +67,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/X86/X86LDBackend.h b/lib/Target/X86/X86LDBackend.h
index d9a4d56..a745999 100644
--- a/lib/Target/X86/X86LDBackend.h
+++ b/lib/Target/X86/X86LDBackend.h
@@ -254,4 +254,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/X86/X86PLT.cpp b/lib/Target/X86/X86PLT.cpp
index c5e05f9..e9f9db1 100644
--- a/lib/Target/X86/X86PLT.cpp
+++ b/lib/Target/X86/X86PLT.cpp
@@ -276,4 +276,3 @@ void X86PLT::applyPLT1() {
}
} // end namespace mcld
-
diff --git a/lib/Target/X86/X86RelocationFactory.h b/lib/Target/X86/X86RelocationFactory.h
index 6a6c372..779a21d 100644
--- a/lib/Target/X86/X86RelocationFactory.h
+++ b/lib/Target/X86/X86RelocationFactory.h
@@ -55,4 +55,3 @@ private:
} // namespace of mcld
#endif
-
diff --git a/lib/Target/X86/X86SectLinker.cpp b/lib/Target/X86/X86SectLinker.cpp
index 793b97b..14621f3 100644
--- a/lib/Target/X86/X86SectLinker.cpp
+++ b/lib/Target/X86/X86SectLinker.cpp
@@ -44,4 +44,3 @@ extern "C" void LLVMInitializeX86SectLinker() {
// Register the linker frontend
mcld::TargetRegistry::RegisterSectLinker(TheX86Target, createX86SectLinker);
}
-
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index b036137..b3d7779 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -31,4 +31,3 @@ mcld::X86TargetMachine::~X86TargetMachine()
{
delete m_pLDInfo;
}
-