summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-25 07:52:13 +0000
committerChris Lattner <sabre@nondot.org>2010-01-25 07:52:13 +0000
commit91dac6d570bca39ab11bffb88613e4246171529a (patch)
tree4c61ba288e644b86b87a58356cb29df4a0cf0446 /llvm/lib/MC/MCMachOStreamer.cpp
parent9b83727cfee6b763ea6c16c2096ad7b041395785 (diff)
downloadbcm5719-llvm-91dac6d570bca39ab11bffb88613e4246171529a.tar.gz
bcm5719-llvm-91dac6d570bca39ab11bffb88613e4246171529a.zip
emit the .size directive for global variables on ELF through
mcstreamer. llvm-svn: 94416
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index e559c65f2c1..bd93f62a2f7 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -124,6 +124,9 @@ public:
virtual void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue);
virtual void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
unsigned ByteAlignment);
+ virtual void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) {
+ assert(0 && "macho doesn't support this directive");
+ }
virtual void EmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size) {
assert(0 && "macho doesn't support this directive");
}
OpenPOWER on IntegriCloud