summaryrefslogtreecommitdiff
path: root/lib/AsmParser/LLLexer.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-05 22:42:53 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-05 22:42:53 +0000
commitfa254cb46cc04097cf2cef4429dd394049b6740a (patch)
tree86a733f9b92776fb7aac07787fc370a341eef8d5 /lib/AsmParser/LLLexer.cpp
parentb29a2b0c4c69971a179652cb262e970fde5fc9ed (diff)
downloadllvm-fa254cb46cc04097cf2cef4429dd394049b6740a.tar.gz
llvm-fa254cb46cc04097cf2cef4429dd394049b6740a.tar.bz2
llvm-fa254cb46cc04097cf2cef4429dd394049b6740a.tar.xz
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
Diffstat (limited to 'lib/AsmParser/LLLexer.cpp')
-rw-r--r--lib/AsmParser/LLLexer.cpp4
1 files changed, 4 insertions, 0 deletions
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.
//===----------------------------------------------------------------------===//