OSDN Git Service

[DebugInfoPDB] Add backward support flags to PDB_NameSearchFlags
authorAaron Smith <aaron.smith@microsoft.com>
Tue, 20 Mar 2018 01:04:21 +0000 (01:04 +0000)
committerAaron Smith <aaron.smith@microsoft.com>
Tue, 20 Mar 2018 01:04:21 +0000 (01:04 +0000)
For NS_CaseInFileNameExt support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327933 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/PDB/PDBTypes.h

index 9d59c09..5ff0140 100644 (file)
@@ -98,7 +98,12 @@ enum PDB_NameSearchFlags {
   NS_CaseInsensitive = 0x2,
   NS_FileNameExtMatch = 0x4,
   NS_Regex = 0x8,
-  NS_UndecoratedName = 0x10
+  NS_UndecoratedName = 0x10,
+
+  // For backward compatibility.
+  NS_CaseInFileNameExt = NS_CaseInsensitive | NS_FileNameExtMatch,
+  NS_CaseRegex = NS_Regex | NS_CaseSensitive,
+  NS_CaseInRex = NS_Regex | NS_CaseInsensitive
 };
 
 /// Specifies the hash algorithm that a source file from a PDB was hashed with.