diff options
| author | Justin Bogner <mail@justinbogner.com> | 2016-08-16 23:37:10 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2016-08-16 23:37:10 +0000 |
| commit | 39eec466a220cfa4152bbcbc956f9a4fd3a84699 (patch) | |
| tree | b5d57a327f42e1cbc9865f2662cb09cfc499f5ab /llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp | |
| parent | dcbce9c3919ab6919de09f64e83fcf26d6353f0b (diff) | |
| download | bcm5719-llvm-39eec466a220cfa4152bbcbc956f9a4fd3a84699.tar.gz bcm5719-llvm-39eec466a220cfa4152bbcbc956f9a4fd3a84699.zip | |
Revert "Write the TPI stream from a PDB to Yaml."
This is hitting a "use of undeclared identifier 'skipPadding' error
locally and on some bots.
This reverts r278869.
llvm-svn: 278871
Diffstat (limited to 'llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp')
| -rw-r--r-- | llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp b/llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp index 1277b01df9e..ff3d5d1cfd9 100644 --- a/llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp +++ b/llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp @@ -16,7 +16,6 @@ #include "llvm/DebugInfo/PDB/Raw/InfoStream.h" #include "llvm/DebugInfo/PDB/Raw/PDBFile.h" #include "llvm/DebugInfo/PDB/Raw/RawConstants.h" -#include "llvm/DebugInfo/PDB/Raw/TpiStream.h" using namespace llvm; using namespace llvm::pdb; @@ -46,9 +45,6 @@ Error YAMLOutputStyle::dump() { if (auto EC = dumpDbiStream()) return EC; - if (auto EC = dumpTpiStream()) - return EC; - flush(); return Error::success(); } @@ -154,30 +150,6 @@ Error YAMLOutputStyle::dumpDbiStream() { return Error::success(); } -Error YAMLOutputStyle::dumpTpiStream() { - if (!opts::pdb2yaml::TpiStream) - return Error::success(); - - auto TpiS = File.getPDBTpiStream(); - if (!TpiS) - return TpiS.takeError(); - - auto &TS = TpiS.get(); - Obj.TpiStream.emplace(); - Obj.TpiStream->Version = TS.getTpiVersion(); - for (auto &Record : TS.types(nullptr)) { - yaml::PdbTpiRecord R; - // It's not necessary to set R.RecordData here. That only exists as a - // way to have the `PdbTpiRecord` structure own the memory that `R.Record` - // references. In the case of reading an existing PDB though, that memory - // is owned by the backing stream. - R.Record = Record; - Obj.TpiStream->Records.push_back(R); - } - - return Error::success(); -} - void YAMLOutputStyle::flush() { Out << Obj; outs().flush(); |

