diff options
author | Adrian McCarthy <amccarth@google.com> | 2017-03-23 17:18:50 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2017-03-23 17:18:50 +0000 |
commit | 3c0328e01127a573c7b1ec81f926f81191e3e93d (patch) | |
tree | 15d1709412b9dc6619d628b54bd972a403e05440 /llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp | |
parent | e4e5a2b13e4f56422f7f446baf75a41db3dc1add (diff) | |
download | bcm5719-llvm-3c0328e01127a573c7b1ec81f926f81191e3e93d.tar.gz bcm5719-llvm-3c0328e01127a573c7b1ec81f926f81191e3e93d.zip |
Somehow this still breaks because of ANSI color codes in test output on Linux.
Reverting until I can figure out the root cause.
Revert "Re-land: Make NativeExeSymbol a concrete subclass of NativeRawSymbol [PDB]"
This reverts commit f461a70cc376f0f91c8b4917be79479cc86330a5.
llvm-svn: 298626
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp deleted file mode 100644 index ec2a4b87457..00000000000 --- a/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp +++ /dev/null @@ -1,79 +0,0 @@ -//===- NativeExeSymbol.cpp - native impl for PDBSymbolExe -------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "llvm/DebugInfo/PDB/Native/NativeExeSymbol.h" - -#include "llvm/DebugInfo/PDB/Native/DbiStream.h" -#include "llvm/DebugInfo/PDB/Native/InfoStream.h" -#include "llvm/DebugInfo/PDB/Native/NativeEnumModules.h" -#include "llvm/DebugInfo/PDB/Native/PDBFile.h" - -namespace llvm { -namespace pdb { - -NativeExeSymbol::NativeExeSymbol(NativeSession &Session) - : NativeRawSymbol(Session), File(Session.getPDBFile()) {} - -std::unique_ptr<IPDBEnumSymbols> -NativeExeSymbol::findChildren(PDB_SymType Type) const { - switch (Type) { - case PDB_SymType::Compiland: { - auto Dbi = File.getPDBDbiStream(); - if (Dbi) { - const auto Modules = Dbi->modules(); - return std::unique_ptr<IPDBEnumSymbols>( - new NativeEnumModules(Session, Modules)); - } - consumeError(Dbi.takeError()); - break; - } - default: - break; - } - return nullptr; -} - -uint32_t NativeExeSymbol::getAge() const { - auto IS = File.getPDBInfoStream(); - if (IS) - return IS->getAge(); - consumeError(IS.takeError()); - return 0; -} - -std::string NativeExeSymbol::getSymbolsFileName() const { - return File.getFilePath(); -} - -PDB_UniqueId NativeExeSymbol::getGuid() const { - auto IS = File.getPDBInfoStream(); - if (IS) - return IS->getGuid(); - consumeError(IS.takeError()); - return PDB_UniqueId{{0}}; -} - -bool NativeExeSymbol::hasCTypes() const { - auto Dbi = File.getPDBDbiStream(); - if (Dbi) - return Dbi->hasCTypes(); - consumeError(Dbi.takeError()); - return false; -} - -bool NativeExeSymbol::hasPrivateSymbols() const { - auto Dbi = File.getPDBDbiStream(); - if (Dbi) - return !Dbi->isStripped(); - consumeError(Dbi.takeError()); - return false; -} - -} // namespace pdb -} // namespace llvm |