[llvm-pdbdump] Fix a few compilation failures.
authorZachary Turner <zturner@google.com>
Sun, 22 Feb 2015 22:20:26 +0000 (22:20 +0000)
committerZachary Turner <zturner@google.com>
Sun, 22 Feb 2015 22:20:26 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230186 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-pdbdump/FunctionDumper.cpp
tools/llvm-pdbdump/llvm-pdbdump.cpp

index 851fa1f773ebdbfa9eccd5454e7793a1fc9ecd28..e392c5d0778ce5c3cf96b3f80fca6210a711c209 100644 (file)
@@ -20,6 +20,8 @@
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h"
 
+using namespace llvm;
+
 namespace {
 template <class T>
 void dumpClassParentWithScopeOperator(const T &Symbol, llvm::raw_ostream &OS,
@@ -35,8 +37,6 @@ void dumpClassParentWithScopeOperator(const T &Symbol, llvm::raw_ostream &OS,
 }
 }
 
-using namespace llvm;
-
 FunctionDumper::FunctionDumper() : PDBSymDumper(true) {}
 
 void FunctionDumper::start(const PDBSymbolTypeFunctionSig &Symbol,
index 5c34db30f35e2dbb90b5a894dc693b8de3d15fbc..cf305d3328ed2678ad4640218e4f416b15b5e037 100644 (file)
@@ -83,7 +83,6 @@ static void dumpInput(StringRef Path) {
   if (GlobalScope->hasPrivateSymbols())
     outs() << "HasPrivateSymbols ";
 
-  PDB_DumpFlags Flags = PDB_DF_None;
   if (opts::DumpTypes) {
     outs() << "\nDumping types";
     TypeDumper Dumper;