[DebugInfoPDB] Teach Variant to support string types.
authorZachary Turner <zturner@google.com>
Wed, 17 Feb 2016 21:13:15 +0000 (21:13 +0000)
committerZachary Turner <zturner@google.com>
Wed, 17 Feb 2016 21:13:15 +0000 (21:13 +0000)
commitda292bd4bdf9201887df527c5843d807e0ec1f1a
tree5e2e252258ca6c921c48d0661b1b13ece4588384
parent9d8ac61fec65b20472a4e6ad9b17472828029971
[DebugInfoPDB] Teach Variant to support string types.

The IDiaSymbol::getValue() method returns a variant.  Until now,
I had never encountered a string value, so the Variant wrapper
did not support VT_BSTR.  Now we have need to support string
values, so this patch just adds support for one extra type to
Variant.

llvm-svn: 261152
llvm/include/llvm/DebugInfo/PDB/PDBTypes.h
llvm/lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp
llvm/lib/DebugInfo/PDB/PDBExtras.cpp