From fa254cb46cc04097cf2cef4429dd394049b6740a Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 5 Apr 2014 22:42:53 +0000 Subject: AsmParser: add a warning for compatibility parsing This adds a warning when linker_private or linker_private_weak is provided and we handle it in a compatible manner. Suggested by Chris Lattner! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205681 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/LLLexer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/AsmParser/LLLexer.cpp') diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp index 4fec7e60fa..c717a53f3a 100644 --- a/lib/AsmParser/LLLexer.cpp +++ b/lib/AsmParser/LLLexer.cpp @@ -34,6 +34,10 @@ bool LLLexer::Error(LocTy ErrorLoc, const Twine &Msg) const { return true; } +void LLLexer::Warning(LocTy WarningLoc, const Twine &Msg) const { + SM.PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg); +} + //===----------------------------------------------------------------------===// // Helper functions. //===----------------------------------------------------------------------===// -- cgit v1.2.3