summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-21 23:00:17 +0000
committerTim Northover <tnorthover@apple.com>2016-04-21 23:00:17 +0000
commitc52c74efdf43f35c7d1b9dcda309218b50573677 (patch)
tree2530d8ed9847b13cac124e335677b6ba1d8bd9dd /llvm/lib/MC/MCMachOStreamer.cpp
parent89dd1dd2782de71d56c512e44b9dfda2f7b95351 (diff)
downloadbcm5719-llvm-c52c74efdf43f35c7d1b9dcda309218b50573677.tar.gz
bcm5719-llvm-c52c74efdf43f35c7d1b9dcda309218b50573677.zip
MachO: enable .data_region directives everywhere
We'd disabled them on x86 because back in the early days some host tools couldn't handle the new load commands. This no longer holds: anyone capable of deploying Clang should be able to deploy its copies of ar/ranlib/etc. rdar://25254790 llvm-svn: 267075
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 7f0bfbd9a65..45a497240b4 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -214,8 +214,6 @@ void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
}
void MCMachOStreamer::EmitDataRegion(DataRegionData::KindTy Kind) {
- if (!getAssembler().getBackend().hasDataInCodeSupport())
- return;
// Create a temporary label to mark the start of the data region.
MCSymbol *Start = getContext().createTempSymbol();
EmitLabel(Start);
@@ -226,8 +224,6 @@ void MCMachOStreamer::EmitDataRegion(DataRegionData::KindTy Kind) {
}
void MCMachOStreamer::EmitDataRegionEnd() {
- if (!getAssembler().getBackend().hasDataInCodeSupport())
- return;
std::vector<DataRegionData> &Regions = getAssembler().getDataRegions();
assert(!Regions.empty() && "Mismatched .end_data_region!");
DataRegionData &Data = Regions.back();
OpenPOWER on IntegriCloud