summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2012-10-10 01:41:33 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2012-10-10 01:41:33 +0000
commit3f31fa05d5471deeee6164a8bdcfe75ca004e062 (patch)
treedcfdb4ff7c201fd5fb6007f919b5e06eb2785302 /llvm/lib/Object/COFFObjectFile.cpp
parent9c8dcfc73a25704814d5ea90f3714de794788c56 (diff)
downloadbcm5719-llvm-3f31fa05d5471deeee6164a8bdcfe75ca004e062.tar.gz
bcm5719-llvm-3f31fa05d5471deeee6164a8bdcfe75ca004e062.zip
This patch adds new functions to the SectionRef and ObjectFile interfaces to determine whether or not a section is meant to be read-only. These functions will be used by the MCJIT RuntimeDyld to give hints to the memory manager during the object loading process in a future patch.
Patch by Ashok Thirumurthi. llvm-svn: 165586
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 8ab54c62950..72759ff86e7 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -377,6 +377,13 @@ error_code COFFObjectFile::isSectionZeroInit(DataRefImpl Sec,
return object_error::success;
}
+error_code COFFObjectFile::isSectionReadOnlyData(DataRefImpl Sec,
+ bool &Result) const {
+ // FIXME: Unimplemented.
+ Result = false;
+ return object_error::success;
+}
+
error_code COFFObjectFile::sectionContainsSymbol(DataRefImpl Sec,
DataRefImpl Symb,
bool &Result) const {
OpenPOWER on IntegriCloud