diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-10-01 22:20:54 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-10-01 22:20:54 +0000 |
commit | b4316028b3978e65cc2b97042292637857dfad49 (patch) | |
tree | e1b9fd01dbb0ceed9a660df11ca5c17af8e84432 /include/llvm/MC | |
parent | 0585b38088682b867cdf26c3e7aaaf2eb6c38179 (diff) | |
download | external_llvm-b4316028b3978e65cc2b97042292637857dfad49.zip external_llvm-b4316028b3978e65cc2b97042292637857dfad49.tar.gz external_llvm-b4316028b3978e65cc2b97042292637857dfad49.tar.bz2 |
MachO: direct-to-object attribute for data-in-code markers.
The target backend can support data-in-code load commands even when
the assembler doesn't, or vice-versa. Allow targets to opt-in for
direct-to-object.
PR13973.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r-- | include/llvm/MC/MCAsmBackend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmBackend.h b/include/llvm/MC/MCAsmBackend.h index 348a5f5..72ed1a3 100644 --- a/include/llvm/MC/MCAsmBackend.h +++ b/include/llvm/MC/MCAsmBackend.h @@ -36,6 +36,7 @@ protected: // Can only create subclasses. MCAsmBackend(); unsigned HasReliableSymbolDifference : 1; + unsigned HasDataInCodeSupport : 1; public: virtual ~MCAsmBackend(); @@ -65,6 +66,12 @@ public: return HasReliableSymbolDifference; } + /// hasDataInCodeSupport - Check whether this target implements data-in-code + /// markers. If not, data region directives will be ignored. + bool hasDataInCodeSupport() const { + return HasDataInCodeSupport; + } + /// doesSectionRequireSymbols - Check whether the given section requires that /// all symbols (even temporaries) have symbol table entries. virtual bool doesSectionRequireSymbols(const MCSection &Section) const { |