Use "using namespace llvm" like the rest of ELF lld.

llvm-svn: 274755
This commit is contained in:
Rafael Espindola 2016-07-07 14:06:38 +00:00
parent b34cba97b7
commit d10f0b1eae
1 changed files with 6 additions and 4 deletions

View File

@ -13,22 +13,24 @@
#include "llvm/ADT/Twine.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
namespace lld {
namespace elf {
bool HasError;
llvm::raw_ostream *ErrorOS;
raw_ostream *ErrorOS;
void log(const Twine &Msg) {
if (Config->Verbose)
llvm::outs() << Msg << "\n";
outs() << Msg << "\n";
}
void warning(const Twine &Msg) {
if (Config->FatalWarnings)
error(Msg);
else
llvm::errs() << Msg << "\n";
errs() << Msg << "\n";
}
void error(const Twine &Msg) {
@ -42,7 +44,7 @@ void error(std::error_code EC, const Twine &Prefix) {
}
void fatal(const Twine &Msg) {
llvm::errs() << Msg << "\n";
errs() << Msg << "\n";
exit(1);
}