summaryrefslogtreecommitdiffstats
path: root/lld/include
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-06-20 16:45:16 +0000
committerTim Northover <tnorthover@apple.com>2014-06-20 16:45:16 +0000
commitdb128a2d3f5a46f4660bd3ce2036bea262c95b93 (patch)
tree2a9788e0a2ed57544777da02c5b927d062f486cf /lld/include
parentbebc55b13b8358625509b15608bb32638da9a5ca (diff)
downloadbcm5719-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.h6
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);
}
OpenPOWER on IntegriCloud