diff options
| author | Eric Christopher <echristo@apple.com> | 2010-05-17 22:53:55 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-05-17 22:53:55 +0000 |
| commit | ba2a5e8587e7c9f72ddef756ed0873abe758acb5 (patch) | |
| tree | 3d6334e99b927d2cf415aef36e533c1337018bcb /lib/MC | |
| parent | e17aa701d44f2696638086730c6c7a713f055bef (diff) | |
| download | external_llvm-ba2a5e8587e7c9f72ddef756ed0873abe758acb5.zip external_llvm-ba2a5e8587e7c9f72ddef756ed0873abe758acb5.tar.gz external_llvm-ba2a5e8587e7c9f72ddef756ed0873abe758acb5.tar.bz2 | |
More data/parsing support for tls directives. Add a few more testcases
and cleanup comments as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
| -rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index c491673..2a60a67 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -623,6 +623,16 @@ bool AsmParser::ParseStatement() { return ParseDirectiveSectionSwitch("__OBJC", "__selector_strs", MCSectionMachO::S_CSTRING_LITERALS); + if (IDVal == ".tdata") + return ParseDirectiveSectionSwitch("__DATA", "__thread_data", + MCSectionMachO::S_THREAD_LOCAL_REGULAR); + if (IDVal == ".tlv") + return ParseDirectiveSectionSwitch("__DATA", "__thread_vars", + MCSectionMachO::S_THREAD_LOCAL_VARIABLES); + if (IDVal == ".thread_init_func") + return ParseDirectiveSectionSwitch("__DATA", "__thread_init", + MCSectionMachO::S_THREAD_LOCAL_INIT_FUNCTION_POINTERS); + // Assembler features if (IDVal == ".set") return ParseDirectiveSet(); |
