summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2015-12-18 02:27:52 +0000
committerVedant Kumar <vsk@apple.com>2015-12-18 02:27:52 +0000
commite116b5537d8d2f4c25fc6e45b3d9f7af920e662e (patch)
tree709dc0e8e0d3d04211407f5bf1a898e7b2c7d79c /include
parentcca8dbee4ea6ee37ef32e1794008d4d15bbd566b (diff)
[Option] Introduce Arg::print(raw_ostream&) and use llvm::dbgs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Option/Arg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Option/Arg.h b/include/llvm/Option/Arg.h
index e1b72b6267c..f56ef080dcf 100644
--- a/include/llvm/Option/Arg.h
+++ b/include/llvm/Option/Arg.h
@@ -18,6 +18,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Option/Option.h"
+#include "llvm/Support/raw_ostream.h"
#include <string>
namespace llvm {
@@ -113,6 +114,8 @@ public:
/// when rendered as a input (e.g., Xlinker).
void renderAsInput(const ArgList &Args, ArgStringList &Output) const;
+ void print(raw_ostream &OS) const;
+
void dump() const;
/// \brief Return a formatted version of the argument and