diff options
author | Vedant Kumar <vsk@apple.com> | 2015-12-18 02:30:45 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2015-12-18 02:30:45 +0000 |
commit | 2892a4a30280bf4ba29bbd5f45d59006dc6b5629 (patch) | |
tree | c0da444813500692ac80b7b5805b961ff74b0a06 /llvm/lib/Option/Arg.cpp | |
parent | a1e51fd96828e52ab8c79fc0393bb098595a7700 (diff) | |
download | bcm5719-llvm-2892a4a30280bf4ba29bbd5f45d59006dc6b5629.tar.gz bcm5719-llvm-2892a4a30280bf4ba29bbd5f45d59006dc6b5629.zip |
Revert "[Option] Introduce Arg::print(raw_ostream&) and use llvm::dbgs"
This reverts commit r255977. This is part of
http://reviews.llvm.org/D15634.
llvm-svn: 255978
Diffstat (limited to 'llvm/lib/Option/Arg.cpp')
-rw-r--r-- | llvm/lib/Option/Arg.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/llvm/lib/Option/Arg.cpp b/llvm/lib/Option/Arg.cpp index b14493d7dd7..ac000736c1f 100644 --- a/llvm/lib/Option/Arg.cpp +++ b/llvm/lib/Option/Arg.cpp @@ -12,7 +12,7 @@ #include "llvm/ADT/Twine.h" #include "llvm/Option/ArgList.h" #include "llvm/Option/Option.h" -#include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; using namespace llvm::opt; @@ -43,24 +43,21 @@ Arg::~Arg() { } } -void Arg::print(raw_ostream &OS) const { - OS << "<"; +void Arg::dump() const { + llvm::errs() << "<"; - OS << " Opt:"; + llvm::errs() << " Opt:"; Opt.dump(); - OS << " Index:" << Index; + llvm::errs() << " Index:" << Index; - OS << " Values: ["; + llvm::errs() << " Values: ["; for (unsigned i = 0, e = Values.size(); i != e; ++i) { - OS << "'" << Values[i] << "'"; - if (i != e - 1) llvm::errs() << ", "; + if (i) llvm::errs() << ", "; + llvm::errs() << "'" << Values[i] << "'"; } - OS << "]>\n"; -} -void Arg::dump() const { - print(llvm::dbgs()); + llvm::errs() << "]>\n"; } std::string Arg::getAsString(const ArgList &Args) const { |