diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-07 02:28:31 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-07 02:28:31 +0000 |
commit | 69c7caf63068aac90c413c221c437b648bafa6bc (patch) | |
tree | 722652db07fc00b87d9750366c4890bd04d2cd05 /llvm/lib/MC/MCParser/AsmParser.cpp | |
parent | 9deac1b7c2731eca2513c886611db5c3ee1b97ea (diff) | |
download | bcm5719-llvm-69c7caf63068aac90c413c221c437b648bafa6bc.tar.gz bcm5719-llvm-69c7caf63068aac90c413c221c437b648bafa6bc.zip |
MCParser: introduce Note and use it for ARM AsmParser
Introduce a new virtual method Note into the AsmParser. This completements the
existing Warning and Error methods. Use the new method to clean up the output
of the unwind routines in the ARM AsmParser.
llvm-svn: 198661
Diffstat (limited to 'llvm/lib/MC/MCParser/AsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 4b83144f3bd..451ae7ae407 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -211,6 +211,7 @@ public: AssemblerDialect = i; } + virtual void Note(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges = None); virtual bool Warning(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges = None); virtual bool Error(SMLoc L, const Twine &Msg, @@ -537,6 +538,11 @@ void AsmParser::printMacroInstantiations() { "while in macro instantiation"); } +void AsmParser::Note(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) { + printMessage(L, SourceMgr::DK_Note, Msg, Ranges); + printMacroInstantiations(); +} + bool AsmParser::Warning(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) { if (FatalAssemblerWarnings) return Error(L, Msg, Ranges); |