diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-23 06:39:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-23 06:39:22 +0000 |
commit | a5ad93a10a5435f21090b09edb6b3a7e44967648 (patch) | |
tree | ef70d3d7e9c5622f26c42d8cda83e5abfe0af76c /lib/MC/MCParser | |
parent | 52492ac0d03aa86b07ad889b69b0ba38ffec8011 (diff) | |
download | external_llvm-a5ad93a10a5435f21090b09edb6b3a7e44967648.zip external_llvm-a5ad93a10a5435f21090b09edb6b3a7e44967648.tar.gz external_llvm-a5ad93a10a5435f21090b09edb6b3a7e44967648.tar.bz2 |
move the various directive enums out of the MCStreamer class
into a new MCDirectives.h file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index e311400..dd438b7 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -702,29 +702,29 @@ bool AsmParser::ParseStatement() { // Symbol attribute directives if (IDVal == ".globl" || IDVal == ".global") - return ParseDirectiveSymbolAttribute(MCStreamer::Global); + return ParseDirectiveSymbolAttribute(MCSA_Global); if (IDVal == ".hidden") - return ParseDirectiveSymbolAttribute(MCStreamer::Hidden); + return ParseDirectiveSymbolAttribute(MCSA_Hidden); if (IDVal == ".indirect_symbol") - return ParseDirectiveSymbolAttribute(MCStreamer::IndirectSymbol); + return ParseDirectiveSymbolAttribute(MCSA_IndirectSymbol); if (IDVal == ".internal") - return ParseDirectiveSymbolAttribute(MCStreamer::Internal); + return ParseDirectiveSymbolAttribute(MCSA_Internal); if (IDVal == ".lazy_reference") - return ParseDirectiveSymbolAttribute(MCStreamer::LazyReference); + return ParseDirectiveSymbolAttribute(MCSA_LazyReference); if (IDVal == ".no_dead_strip") - return ParseDirectiveSymbolAttribute(MCStreamer::NoDeadStrip); + return ParseDirectiveSymbolAttribute(MCSA_NoDeadStrip); if (IDVal == ".private_extern") - return ParseDirectiveSymbolAttribute(MCStreamer::PrivateExtern); + return ParseDirectiveSymbolAttribute(MCSA_PrivateExtern); if (IDVal == ".protected") - return ParseDirectiveSymbolAttribute(MCStreamer::Protected); + return ParseDirectiveSymbolAttribute(MCSA_Protected); if (IDVal == ".reference") - return ParseDirectiveSymbolAttribute(MCStreamer::Reference); + return ParseDirectiveSymbolAttribute(MCSA_Reference); if (IDVal == ".weak") - return ParseDirectiveSymbolAttribute(MCStreamer::Weak); + return ParseDirectiveSymbolAttribute(MCSA_Weak); if (IDVal == ".weak_definition") - return ParseDirectiveSymbolAttribute(MCStreamer::WeakDefinition); + return ParseDirectiveSymbolAttribute(MCSA_WeakDefinition); if (IDVal == ".weak_reference") - return ParseDirectiveSymbolAttribute(MCStreamer::WeakReference); + return ParseDirectiveSymbolAttribute(MCSA_WeakReference); if (IDVal == ".comm") return ParseDirectiveComm(/*IsLocal=*/false); @@ -1238,7 +1238,7 @@ bool AsmParser::ParseDirectiveAlign(bool IsPow2, unsigned ValueSize) { /// ParseDirectiveSymbolAttribute /// ::= { ".globl", ".weak", ... } [ identifier ( , identifier )* ] -bool AsmParser::ParseDirectiveSymbolAttribute(MCStreamer::SymbolAttr Attr) { +bool AsmParser::ParseDirectiveSymbolAttribute(MCSymbolAttr Attr) { if (Lexer.isNot(AsmToken::EndOfStatement)) { for (;;) { StringRef Name; @@ -1463,7 +1463,7 @@ bool AsmParser::ParseDirectiveDarwinSubsectionsViaSymbols() { Lex(); - Out.EmitAssemblerFlag(MCStreamer::SubsectionsViaSymbols); + Out.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols); return false; } |