diff options
author | Tim Northover <tnorthover@apple.com> | 2014-06-20 16:45:16 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-06-20 16:45:16 +0000 |
commit | db128a2d3f5a46f4660bd3ce2036bea262c95b93 (patch) | |
tree | 2a9788e0a2ed57544777da02c5b927d062f486cf /lld/include | |
parent | bebc55b13b8358625509b15608bb32638da9a5ca (diff) | |
download | bcm5719-llvm-db128a2d3f5a46f4660bd3ce2036bea262c95b93.tar.gz bcm5719-llvm-db128a2d3f5a46f4660bd3ce2036bea262c95b93.zip |
PE/COFF: move PAGE_SIZE into the PECOFFLinkingContext.
A refactoring, with the added benefit of helping OS X builds.
llvm-svn: 211371
Diffstat (limited to 'lld/include')
-rw-r--r-- | lld/include/lld/ReaderWriter/PECOFFLinkingContext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h b/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h index 30bd0414e4b..d76a7321d83 100644 --- a/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h +++ b/lld/include/lld/ReaderWriter/PECOFFLinkingContext.h @@ -88,6 +88,12 @@ public: return _machineType == llvm::COFF::IMAGE_FILE_MACHINE_AMD64; } + /// Page size of x86 processor. Some data needs to be aligned at page boundary + /// when loaded into memory. + uint64_t getPageSize() const { + return 0x1000; + } + void appendInputSearchPath(StringRef dirPath) { _inputSearchPaths.push_back(dirPath); } |