diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-10-16 04:56:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-10-16 04:56:42 +0000 |
commit | 4d99878a37c90b1a33e2ed924db93fd98a4cfe1a (patch) | |
tree | 859bae3ecaed313061344620fecb2e6ca16441bd /llvm/lib/MC/MCParser/AsmParser.cpp | |
parent | b4ece9cf2f187c101d9abbaae0bf8f0ce857dd13 (diff) | |
download | bcm5719-llvm-4d99878a37c90b1a33e2ed924db93fd98a4cfe1a.tar.gz bcm5719-llvm-4d99878a37c90b1a33e2ed924db93fd98a4cfe1a.zip |
MC/AsmParser: Report .stabs directive as unsupported.
llvm-svn: 116659
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 23ae5f2e22c..6a5d7697aed 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -236,6 +236,7 @@ public: AddDirectiveHandler<&GenericAsmParser::ParseDirectiveFile>(".file"); AddDirectiveHandler<&GenericAsmParser::ParseDirectiveLine>(".line"); AddDirectiveHandler<&GenericAsmParser::ParseDirectiveLoc>(".loc"); + AddDirectiveHandler<&GenericAsmParser::ParseDirectiveStabs>(".stabs"); // Macro directives. AddDirectiveHandler<&GenericAsmParser::ParseDirectiveMacrosOnOff>( @@ -253,6 +254,7 @@ public: bool ParseDirectiveFile(StringRef, SMLoc DirectiveLoc); bool ParseDirectiveLine(StringRef, SMLoc DirectiveLoc); bool ParseDirectiveLoc(StringRef, SMLoc DirectiveLoc); + bool ParseDirectiveStabs(StringRef, SMLoc DirectiveLoc); bool ParseDirectiveMacrosOnOff(StringRef, SMLoc DirectiveLoc); bool ParseDirectiveMacro(StringRef, SMLoc DirectiveLoc); @@ -2081,6 +2083,13 @@ bool GenericAsmParser::ParseDirectiveLoc(StringRef, SMLoc DirectiveLoc) { return false; } +/// ParseDirectiveStabs +/// ::= .stabs string, number, number, number +bool GenericAsmParser::ParseDirectiveStabs(StringRef Directive, + SMLoc DirectiveLoc) { + return TokError("unsupported directive '" + Directive + "'"); +} + /// ParseDirectiveMacrosOnOff /// ::= .macros_on /// ::= .macros_off |