aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-06-22 20:14:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-06-22 20:14:46 +0000
commitc90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0 (patch)
tree185437fef56a5df34efd95b8566d02f13ff9c9d6 /lib/MC/MCMachOStreamer.cpp
parent04ce06dc4c9dff4ff7a8b97079e3cbb7b60da3ab (diff)
downloadexternal_llvm-c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0.zip
external_llvm-c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0.tar.gz
external_llvm-c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0.tar.bz2
EmitZerofill should take a 64-bit size or else it's chopping off large zero-filled global. rdar://11729134
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCMachOStreamer.cpp')
-rw-r--r--lib/MC/MCMachOStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp
index 970aa8b..b75fe2c 100644
--- a/lib/MC/MCMachOStreamer.cpp
+++ b/lib/MC/MCMachOStreamer.cpp
@@ -74,7 +74,7 @@ public:
llvm_unreachable("macho doesn't support this directive");
}
virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
- unsigned Size = 0, unsigned ByteAlignment = 0);
+ uint64_t Size = 0, unsigned ByteAlignment = 0);
virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
uint64_t Size, unsigned ByteAlignment = 0);
virtual void EmitBytes(StringRef Data, unsigned AddrSpace);
@@ -326,7 +326,7 @@ void MCMachOStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
}
void MCMachOStreamer::EmitZerofill(const MCSection *Section, MCSymbol *Symbol,
- unsigned Size, unsigned ByteAlignment) {
+ uint64_t Size, unsigned ByteAlignment) {
MCSectionData &SectData = getAssembler().getOrCreateSectionData(*Section);
// The symbol may not be present, which only creates the section.