summaryrefslogtreecommitdiff
path: root/tools/llvm-pdbdump/LinePrinter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
commit01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch)
tree4def12e759965de927d963ac65840d663ef9d1ea /tools/llvm-pdbdump/LinePrinter.cpp
parentf0f4822ed4b66e3579e92a89f368f8fb860e218e (diff)
Diffstat (limited to 'tools/llvm-pdbdump/LinePrinter.cpp')
-rw-r--r--tools/llvm-pdbdump/LinePrinter.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/tools/llvm-pdbdump/LinePrinter.cpp b/tools/llvm-pdbdump/LinePrinter.cpp
index a43727f02b5e5..47c7d3e3c0e74 100644
--- a/tools/llvm-pdbdump/LinePrinter.cpp
+++ b/tools/llvm-pdbdump/LinePrinter.cpp
@@ -16,6 +16,9 @@
#include <algorithm>
+using namespace llvm;
+using namespace llvm::pdb;
+
namespace {
bool IsItemExcluded(llvm::StringRef Item,
std::list<llvm::Regex> &IncludeFilters,
@@ -41,19 +44,19 @@ using namespace llvm;
LinePrinter::LinePrinter(int Indent, llvm::raw_ostream &Stream)
: OS(Stream), IndentSpaces(Indent), CurrentIndent(0) {
- SetFilters(ExcludeTypeFilters, opts::ExcludeTypes.begin(),
- opts::ExcludeTypes.end());
- SetFilters(ExcludeSymbolFilters, opts::ExcludeSymbols.begin(),
- opts::ExcludeSymbols.end());
- SetFilters(ExcludeCompilandFilters, opts::ExcludeCompilands.begin(),
- opts::ExcludeCompilands.end());
-
- SetFilters(IncludeTypeFilters, opts::IncludeTypes.begin(),
- opts::IncludeTypes.end());
- SetFilters(IncludeSymbolFilters, opts::IncludeSymbols.begin(),
- opts::IncludeSymbols.end());
- SetFilters(IncludeCompilandFilters, opts::IncludeCompilands.begin(),
- opts::IncludeCompilands.end());
+ SetFilters(ExcludeTypeFilters, opts::pretty::ExcludeTypes.begin(),
+ opts::pretty::ExcludeTypes.end());
+ SetFilters(ExcludeSymbolFilters, opts::pretty::ExcludeSymbols.begin(),
+ opts::pretty::ExcludeSymbols.end());
+ SetFilters(ExcludeCompilandFilters, opts::pretty::ExcludeCompilands.begin(),
+ opts::pretty::ExcludeCompilands.end());
+
+ SetFilters(IncludeTypeFilters, opts::pretty::IncludeTypes.begin(),
+ opts::pretty::IncludeTypes.end());
+ SetFilters(IncludeSymbolFilters, opts::pretty::IncludeSymbols.begin(),
+ opts::pretty::IncludeSymbols.end());
+ SetFilters(IncludeCompilandFilters, opts::pretty::IncludeCompilands.begin(),
+ opts::pretty::IncludeCompilands.end());
}
void LinePrinter::Indent() { CurrentIndent += IndentSpaces; }