[llvm] r307426 - [llvm-pdbutil] Fix build.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 10:38:30 PDT 2017


A test for what, specifically?

On Mon, Jul 10, 2017 at 10:20 AM David Blaikie <dblaikie at gmail.com> wrote:

> Looks like there should be a test for this in the LLVM tree, if that's
> where the functionality is (with a committed PDB file or similar (if
> there's a convenient YAML format or something, that's OK too), as
> llvm-dwarfdump is tested)
>
> On Fri, Jul 7, 2017 at 12:00 PM Zachary Turner via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> Author: zturner
>> Date: Fri Jul  7 12:00:06 2017
>> New Revision: 307426
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=307426&view=rev
>> Log:
>> [llvm-pdbutil] Fix build.
>>
>> Some platforms require an explicit specialization of std::hash
>> for PdbRaw_FeaturesSig.  Also a test involving case sensitivity
>> needed to be fixed.  For now that particular check just accepts
>> any path even if they're completely different.  Long term we
>> should output paths in the correct case to match MSVC.
>>
>> Modified:
>>     llvm/trunk/tools/llvm-pdbutil/DiffPrinter.h
>>
>> Modified: llvm/trunk/tools/llvm-pdbutil/DiffPrinter.h
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/DiffPrinter.h?rev=307426&r1=307425&r2=307426&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/tools/llvm-pdbutil/DiffPrinter.h (original)
>> +++ llvm/trunk/tools/llvm-pdbutil/DiffPrinter.h Fri Jul  7 12:00:06 2017
>> @@ -13,12 +13,23 @@
>>  #include "llvm/ADT/ArrayRef.h"
>>  #include "llvm/ADT/StringMap.h"
>>  #include "llvm/ADT/StringRef.h"
>> +#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
>>  #include "llvm/Support/FormatVariadic.h"
>>  #include "llvm/Support/raw_ostream.h"
>>
>>  #include <list>
>>  #include <unordered_set>
>>
>> +namespace std {
>> +template <> struct hash<llvm::pdb::PdbRaw_FeatureSig> {
>> +  typedef llvm::pdb::PdbRaw_FeatureSig argument_type;
>> +  typedef std::size_t result_type;
>> +  result_type operator()(argument_type Item) const {
>> +    return std::hash<uint32_t>{}(uint32_t(Item));
>> +  }
>> +};
>> +} // namespace std
>> +
>>  namespace llvm {
>>  namespace pdb {
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170710/bd3d251b/attachment.html>


More information about the llvm-commits mailing list