aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCStreamer.h
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
commit99328add833807f12a4950c7de29fb2a5df04703 (patch)
tree64d49704d26bb97c93e0a1b64a2cdaffa85f6d7d /include/llvm/MC/MCStreamer.h
parent5c78034bc80b7de88842c5455a9a3d1402defee7 (diff)
downloadexternal_llvm-99328add833807f12a4950c7de29fb2a5df04703.zip
external_llvm-99328add833807f12a4950c7de29fb2a5df04703.tar.gz
external_llvm-99328add833807f12a4950c7de29fb2a5df04703.tar.bz2
emit the .size directive for global variables on ELF through
mcstreamer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCStreamer.h')
-rw-r--r--include/llvm/MC/MCStreamer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 2bcb594..09df6fa 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -129,6 +129,14 @@ namespace llvm {
/// @param DescValue - The value to set into the n_desc field.
virtual void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) = 0;
+
+ /// EmitELFSize - Emit an ELF .size directive.
+ ///
+ /// This corresponds to an assembler statement such as:
+ /// .size symbol, expression
+ ///
+ virtual void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) = 0;
+
/// EmitCommonSymbol - Emit a common symbol.
///
/// @param Symbol - The common symbol to emit.