aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-14 01:50:28 +0000
committerEric Christopher <echristo@apple.com>2010-05-14 01:50:28 +0000
commit482eba054ab3543ee0e1f453d3d6441092f4b76d (patch)
treeccb3182f3e97fae2f37f3b70207f1bcbd917cae1 /include/llvm/MC
parentc260a3e59af7d1b283ecd513523ccbd6de574f30 (diff)
downloadexternal_llvm-482eba054ab3543ee0e1f453d3d6441092f4b76d.zip
external_llvm-482eba054ab3543ee0e1f453d3d6441092f4b76d.tar.gz
external_llvm-482eba054ab3543ee0e1f453d3d6441092f4b76d.tar.bz2
Add AsmParser support for darwin tbss directive.
Nothing uses this yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCParser/AsmParser.h1
-rw-r--r--include/llvm/MC/MCStreamer.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/AsmParser.h b/include/llvm/MC/MCParser/AsmParser.h
index 7a78906..e668e64 100644
--- a/include/llvm/MC/MCParser/AsmParser.h
+++ b/include/llvm/MC/MCParser/AsmParser.h
@@ -136,6 +136,7 @@ private:
bool ParseDirectiveComm(bool IsLocal); // ".comm" and ".lcomm"
bool ParseDirectiveDarwinZerofill(); // Darwin specific ".zerofill"
+ bool ParseDirectiveDarwinTBSS(); // Darwin specific ".tbss"
// Darwin specific ".subsections_via_symbols"
bool ParseDirectiveDarwinSubsectionsViaSymbols();
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 9e9f68a..400f4c0 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -188,6 +188,14 @@ namespace llvm {
virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
unsigned Size = 0,unsigned ByteAlignment = 0) = 0;
+ /// EmitTBSSSymbol - Emit a thread local bss (.tbss) symbol.
+ ///
+ /// @param Symbol - The thread local common symbol to emit.
+ /// @param Size - The size of the symbol.
+ /// @param ByteAlignment - The alignment of the thread local common symbol
+ /// if non-zero. This must be a power of 2 on some targets.
+ virtual void EmitTBSSSymbol(MCSymbol *Symbol, uint64_t Size,
+ unsigned ByteAlignment = 0) = 0;
/// @}
/// @name Generating Data
/// @{