[llvm-pdbdump] Many minor fixes and improvements

A short list of some of the improvements:

1) Now supports -all command line argument, which implies many
   other command line arguments to simplify usage.
2) Now supports -no-compiler-generated command line argument to
   exclude compiler generated types.
3) Prints base class list.
4) -class-definitions implies -types.
5) Proper display of bitfields.
6) Can now distinguish between struct/class/interface/union.

And a few other minor tweaks.

llvm-svn: 230933
diff --git a/llvm/test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.cpp b/llvm/test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.cpp
new file mode 100644
index 0000000..51c1b9b
--- /dev/null
+++ b/llvm/test/tools/llvm-pdbdump/Inputs/ClassLayoutTest.cpp
@@ -0,0 +1,64 @@
+// Compile with "cl /c /Zi /GR- ClassLayoutTest.cpp"

+// Link with "link ClassLayoutTest.obj /debug /nodefaultlib /entry:main"

+

+namespace MembersTest {

+  class A {

+  public:

+    typedef int NestedTypedef;

+    enum NestedEnum {

+      NestedEnumValue1

+    };

+

+    void MemberFunc() {}

+

+  private:

+    int IntMemberVar;

+    double DoubleMemberVar;

+  };

+}

+

+namespace GlobalsTest {

+  int IntVar;

+  double DoubleVar;

+  

+  typedef int Typedef;

+  enum Enum {

+    Val1

+  } EnumVar;

+  Typedef TypedefVar;

+}

+

+namespace BaseClassTest {

+  class A {};

+  class B : public virtual A {};

+  class C : public virtual A {};

+  class D : protected B, private C {};

+}

+

+namespace UdtKindTest {

+  struct A {};

+  class B {};

+  union C {};

+}

+

+namespace BitFieldTest {

+  struct A {

+    int Bits1 : 1;

+    int Bits2 : 2;

+    int Bits3 : 3;

+    int Bits4 : 4;

+    int Bits22 : 22;

+    int Offset0x04;

+  };

+};

+

+int main(int argc, char **argv) {

+  MembersTest::A v1;

+  v1.MemberFunc();

+  BaseClassTest::D v2;

+  UdtKindTest::A v3;

+  UdtKindTest::B v4;

+  UdtKindTest::C v5;

+  BitFieldTest::A v7;

+  return 0;

+}