diff options
author | Rui Ueyama <ruiu@google.com> | 2015-03-26 02:03:44 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-03-26 02:03:44 +0000 |
commit | f217ef0d75a4438f610764e582823ffd4807d75d (patch) | |
tree | 046816af6939a27aa592028ee9effc5fc4e3d92a /lld/lib/ReaderWriter/CoreLinkingContext.cpp | |
parent | f006f4d62c9375288f25870f2b020609d67f6b11 (diff) | |
download | bcm5719-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/CoreLinkingContext.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/CoreLinkingContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp index 86fad4f6e77..316f858844a 100644 --- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp +++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp @@ -43,7 +43,7 @@ public: ContentType contentType() const override { return DefinedAtom::typeStub; } - Alignment alignment() const override { return Alignment(0, 0); } + Alignment alignment() const override { return 1; } SectionChoice sectionChoice() const override { return DefinedAtom::sectionBasedOnContent; @@ -104,7 +104,7 @@ public: ContentType contentType() const override { return DefinedAtom::typeGOT; } - Alignment alignment() const override { return Alignment(3, 0); } + Alignment alignment() const override { return 8; } SectionChoice sectionChoice() const override { return DefinedAtom::sectionBasedOnContent; |