[lld] r234866 - Fix indentation.
Rui Ueyama
ruiu at google.com
Mon Apr 13 23:58:48 PDT 2015
Author: ruiu
Date: Tue Apr 14 01:58:48 2015
New Revision: 234866
URL: http://llvm.org/viewvc/llvm-project?rev=234866&view=rev
Log:
Fix indentation.
Modified:
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h?rev=234866&r1=234865&r2=234866&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonTargetHandler.h Tue Apr 14 01:58:48 2015
@@ -47,10 +47,9 @@ public:
TargetLayout<ELF32LE>::SectionOrder
getSectionOrder(StringRef name, int32_t contentType,
int32_t contentPermissions) override {
- if ((contentType == DefinedAtom::typeDataFast) ||
- (contentType == DefinedAtom::typeZeroFillFast))
+ if (contentType == DefinedAtom::typeDataFast ||
+ contentType == DefinedAtom::typeZeroFillFast)
return ORDER_SDATA;
-
return TargetLayout<ELF32LE>::getSectionOrder(name, contentType,
contentPermissions);
}
@@ -72,8 +71,8 @@ public:
createSection(StringRef name, int32_t contentType,
DefinedAtom::ContentPermissions contentPermissions,
TargetLayout<ELF32LE>::SectionOrder sectionOrder) override {
- if ((contentType == DefinedAtom::typeDataFast) ||
- (contentType == DefinedAtom::typeZeroFillFast))
+ if (contentType == DefinedAtom::typeDataFast ||
+ contentType == DefinedAtom::typeZeroFillFast)
return &_sdataSection;
return TargetLayout<ELF32LE>::createSection(
name, contentType, contentPermissions, sectionOrder);
@@ -84,7 +83,6 @@ public:
getSegmentType(Section<ELF32LE> *section) const override {
if (section->order() == ORDER_SDATA)
return PT_LOAD;
-
return TargetLayout<ELF32LE>::getSegmentType(section);
}
More information about the llvm-commits
mailing list