mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
9db9805667
This was originally reverted because of two issues. 1) Printing ANSI color escape codes even when outputting to a file 2) Module name comparisons were failing when comparing a PDB generated on one machine to a PDB generated on another machine. I attempted to fix #2 by adding command line options which let you specify prefixes to strip from the beginning of embedded paths, which effectively lets us specify a path to "base" each PDB from and only compare the parts under the base. But this is tricky because PDB paths always use Windows path syntax, even when they are created on non-Windows hosts. A problem still existed when constructing the prefix to strip, where we were accidentally using a host-specific path separator instead of a Windows path separator. This resubmission fixes the issue on Linux (and I have verified that the test now passes on Linux). llvm-svn: 307571
31 lines
840 B
C++
31 lines
840 B
C++
//===- Streamutil.h - PDB stream utilities ----------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_STREAMUTIL_H
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_STREAMUTIL_H
|
|
|
|
#include "llvm/ADT/SmallVector.h"
|
|
|
|
#include <string>
|
|
|
|
namespace llvm {
|
|
namespace pdb {
|
|
class PDBFile;
|
|
enum class StreamPurpose { NamedStream, ModuleStream, Other };
|
|
|
|
void discoverStreamPurposes(PDBFile &File,
|
|
SmallVectorImpl<std::string> &Purposes);
|
|
void discoverStreamPurposes(
|
|
PDBFile &File,
|
|
SmallVectorImpl<std::pair<StreamPurpose, std::string>> &Purposes);
|
|
}
|
|
}
|
|
|
|
#endif
|