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 | 9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622 (patch) | |
tree | dddf179d65bc5c9875aaab20fbaa80d7d48f4e8b /llvm/lib/MC/MCParser/AsmParser.cpp | |
parent | f2c9a96f3c6f2857f11d9ce4bca81f7f47638f07 (diff) | |
download | bcm5719-llvm-9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622.tar.gz bcm5719-llvm-9635b3da6bf1fef5b5a9ee0c8345d4f9b5680622.zip |
More data/parsing support for tls directives. Add a few more testcases
and cleanup comments as well.
llvm-svn: 103985
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index c4916731ef0..2a60a67e1ba 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/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(); |