summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/File.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-03-26 02:03:44 +0000
committerRui Ueyama <ruiu@google.com>2015-03-26 02:03:44 +0000
commitf217ef0d75a4438f610764e582823ffd4807d75d (patch)
tree046816af6939a27aa592028ee9effc5fc4e3d92a /lld/lib/ReaderWriter/MachO/File.h
parentf006f4d62c9375288f25870f2b020609d67f6b11 (diff)
downloadbcm5719-llvm-f217ef0d75a4438f610764e582823ffd4807d75d.tar.gz
bcm5719-llvm-f217ef0d75a4438f610764e582823ffd4807d75d.zip
Use alignment values everywhere instead of log2.
This patch defines implicit conversion between integers and PowerOf2 instances, so uses of the classes is now implicit and look like regular integers. Now we are ready to remove the scaffolding. llvm-svn: 233245
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/File.h')
-rw-r--r--lld/lib/ReaderWriter/MachO/File.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/MachO/File.h b/lld/lib/ReaderWriter/MachO/File.h
index 4fa1565d41b..364b8c2bd52 100644
--- a/lld/lib/ReaderWriter/MachO/File.h
+++ b/lld/lib/ReaderWriter/MachO/File.h
@@ -44,7 +44,7 @@ public:
}
DefinedAtom::Alignment align(
inSection->alignment,
- sectionOffset % inSection->alignment.get());
+ sectionOffset % inSection->alignment);
MachODefinedAtom *atom =
new (allocator()) MachODefinedAtom(*this, name, scope, type, merge,
thumb, noDeadStrip, content, align);
@@ -67,7 +67,7 @@ public:
}
DefinedAtom::Alignment align(
inSection->alignment,
- sectionOffset % inSection->alignment.get());
+ sectionOffset % inSection->alignment);
MachODefinedCustomSectionAtom *atom =
new (allocator()) MachODefinedCustomSectionAtom(*this, name, scope, type,
merge, thumb,
@@ -86,7 +86,7 @@ public:
}
DefinedAtom::Alignment align(
inSection->alignment,
- sectionOffset % inSection->alignment.get());
+ sectionOffset % inSection->alignment);
MachODefinedAtom *atom =
new (allocator()) MachODefinedAtom(*this, name, scope, size, noDeadStrip,
align);
OpenPOWER on IntegriCloud