diff options
Diffstat (limited to 'tools/llvm-as/llvm-as.cpp')
-rw-r--r-- | tools/llvm-as/llvm-as.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index d9fa1fa7f4..72e32972d2 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -23,6 +23,7 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Streams.h" #include "llvm/Support/SystemUtils.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/System/Signals.h" #include <fstream> #include <iostream> @@ -59,9 +60,9 @@ int main(int argc, char **argv) { try { // Parse the file now... ParseError Err; - std::auto_ptr<Module> M(ParseAssemblyFile(InputFilename,&Err)); + std::auto_ptr<Module> M(ParseAssemblyFile(InputFilename, Err)); if (M.get() == 0) { - cerr << argv[0] << ": " << Err.getMessage() << "\n"; + Err.PrintError(argv[0], errs()); return 1; } |