mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Use MCFillFragment for zero-initialized data.
It fixes PR16338 (ICE when compiling very large two-dimensional array). Differential Revision: http://llvm-reviews.chandlerc.com/D1043 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -154,6 +154,12 @@ void MCStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue,
|
||||
EmitValue(E, 1, AddrSpace);
|
||||
}
|
||||
|
||||
/// EmitZeros - Emit NumBytes worth of zeros. Implementation in this class
|
||||
/// just redirects to EmitFill.
|
||||
void MCStreamer::EmitZeros(uint64_t NumBytes, unsigned AddrSpace) {
|
||||
EmitFill(NumBytes, 0, AddrSpace);
|
||||
}
|
||||
|
||||
bool MCStreamer::EmitDwarfFileDirective(unsigned FileNo,
|
||||
StringRef Directory,
|
||||
StringRef Filename, unsigned CUID) {
|
||||
|
Reference in New Issue
Block a user