aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object/COFF.h
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
commit3a129c85920404e7ccdb7e655c89fa60a0309cfd (patch)
treea6e7173e382ee097c4f705846189252491eb8971 /include/llvm/Object/COFF.h
parent97d9f081a92c18bb4fd1c069dccde7c99301150a (diff)
downloadexternal_llvm-3a129c85920404e7ccdb7e655c89fa60a0309cfd.zip
external_llvm-3a129c85920404e7ccdb7e655c89fa60a0309cfd.tar.gz
external_llvm-3a129c85920404e7ccdb7e655c89fa60a0309cfd.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/COFF.h')
-rw-r--r--include/llvm/Object/COFF.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h
index 967420e..ba81058 100644
--- a/include/llvm/Object/COFF.h
+++ b/include/llvm/Object/COFF.h
@@ -128,6 +128,7 @@ protected:
virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const;
virtual error_code isSectionVirtual(DataRefImpl Sec, bool &Res) const;
virtual error_code isSectionZeroInit(DataRefImpl Sec, bool &Res) const;
+ virtual error_code isSectionReadOnlyData(DataRefImpl Sec, bool &Res) const;
virtual error_code isSectionRequiredForExecution(DataRefImpl Sec,
bool &Res) const;
virtual error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb,