diff options
author | Chris Lattner <sabre@nondot.org> | 2011-10-16 05:43:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-10-16 05:43:57 +0000 |
commit | 03b80a402745ba2ba3b23d9753a19d995ce40671 (patch) | |
tree | 616c6d2f91b0588408cde5ae12328bef29eb9075 /llvm/lib/AsmParser/Parser.cpp | |
parent | a3a06810836e42098c37baba492297e30bdf65c4 (diff) | |
download | bcm5719-llvm-03b80a402745ba2ba3b23d9753a19d995ce40671.tar.gz bcm5719-llvm-03b80a402745ba2ba3b23d9753a19d995ce40671.zip |
Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum.
llvm-svn: 142107
Diffstat (limited to 'llvm/lib/AsmParser/Parser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp index 59fb471f2b9..21b7fd411e3 100644 --- a/llvm/lib/AsmParser/Parser.cpp +++ b/llvm/lib/AsmParser/Parser.cpp @@ -44,7 +44,7 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err, LLVMContext &Context) { OwningPtr<MemoryBuffer> File; if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), File)) { - Err = SMDiagnostic(Filename, + Err = SMDiagnostic(Filename, SourceMgr::DK_Error, "Could not open input file: " + ec.message()); return 0; } |