summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-19 05:57:45 +0000
committerZachary Turner <zturner@google.com>2017-05-19 05:57:45 +0000
commit1dfcf8d92c808bd9fcb4d1a0d81582453f80c423 (patch)
tree611a9e1848ebefa1e5a9e22f6939c0482b8ee05e /llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
parent47fdc73771c39a83d97b8eb142dd311eb773e541 (diff)
downloadbcm5719-llvm-1dfcf8d92c808bd9fcb4d1a0d81582453f80c423.tar.gz
bcm5719-llvm-1dfcf8d92c808bd9fcb4d1a0d81582453f80c423.zip
Revert "[CodeView] Provide a common interface for type collections."
This is a squash of ~5 reverts of, well, pretty much everything I did today. Something is seriously broken with lit on Windows right now, and as a result assertions that fire in tests are triggering failures. I've been breaking non-Windows bots all day which has seriously confused me because all my tests have been passing, and after running lit with -a to view the output even on successful runs, I find out that the tool is crashing and yet lit is still reporting it as a success! At this point I don't even know where to start, so rather than leave the tree broken for who knows how long, I will get this back to green, and then once lit is fixed on Windows, hopefully hopefully fix the remaining set of problems for real. llvm-svn: 303409
Diffstat (limited to 'llvm/tools/llvm-pdbdump/LLVMOutputStyle.h')
-rw-r--r--llvm/tools/llvm-pdbdump/LLVMOutputStyle.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
index 184dc4e1f44..b0e7e3406b3 100644
--- a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
+++ b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
@@ -21,11 +21,6 @@
namespace llvm {
class BitVector;
-
-namespace codeview {
-class LazyRandomTypeCollection;
-}
-
namespace pdb {
class LLVMOutputStyle : public OutputStyle {
public:
@@ -34,8 +29,7 @@ public:
Error dump() override;
private:
- Expected<codeview::LazyRandomTypeCollection &>
- initializeTypeDatabase(uint32_t SN);
+ Error buildTypeDatabase(uint32_t SN);
Error dumpFileHeaders();
Error dumpStreamSummary();
@@ -60,8 +54,8 @@ private:
PDBFile &File;
ScopedPrinter P;
- std::unique_ptr<codeview::LazyRandomTypeCollection> TpiTypes;
- std::unique_ptr<codeview::LazyRandomTypeCollection> IpiTypes;
+ Optional<codeview::TypeDatabase> TypeDB;
+ Optional<codeview::TypeDatabase> ItemDB;
SmallVector<std::string, 32> StreamPurposes;
};
}
OpenPOWER on IntegriCloud