summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/RecordStreamer.h
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-07-02 17:29:43 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-07-02 17:29:43 +0000
commit4d5b1073ba87f6709112d0d9b5270ee51d3abd54 (patch)
tree7092adab58fd58dc72a6580d86337d58dd13a92f /llvm/lib/Object/RecordStreamer.h
parentd4f77a523bb99d3ac7132dfb5783b85835312cce (diff)
downloadbcm5719-llvm-4d5b1073ba87f6709112d0d9b5270ee51d3abd54.tar.gz
bcm5719-llvm-4d5b1073ba87f6709112d0d9b5270ee51d3abd54.zip
[MC] Error on a .zerofill directive in a non-virtual section
On darwin, all virtual sections have zerofill type, and having a .zerofill directive in a non-virtual section is not allowed. Instead of asserting, show a nicer error. In order to use the equivalent of .zerofill in a non-virtual section, the usage of .zero of .space is required. This patch replaces the assert with an error. Differential Revision: https://reviews.llvm.org/D48517 llvm-svn: 336127
Diffstat (limited to 'llvm/lib/Object/RecordStreamer.h')
-rw-r--r--llvm/lib/Object/RecordStreamer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/RecordStreamer.h b/llvm/lib/Object/RecordStreamer.h
index 13eac028a28..3d5ae59b58f 100644
--- a/llvm/lib/Object/RecordStreamer.h
+++ b/llvm/lib/Object/RecordStreamer.h
@@ -53,7 +53,7 @@ public:
void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) override;
bool EmitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override;
void EmitZerofill(MCSection *Section, MCSymbol *Symbol, uint64_t Size,
- unsigned ByteAlignment) override;
+ unsigned ByteAlignment, SMLoc Loc = SMLoc()) override;
void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
unsigned ByteAlignment) override;
/// Record .symver aliases for later processing.
OpenPOWER on IntegriCloud