[llvm] r327933 - [DebugInfoPDB] Add backward support flags to PDB_NameSearchFlags

Aaron Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 19 18:04:21 PDT 2018


Author: asmith
Date: Mon Mar 19 18:04:21 2018
New Revision: 327933

URL: http://llvm.org/viewvc/llvm-project?rev=327933&view=rev
Log:
[DebugInfoPDB] Add backward support flags to PDB_NameSearchFlags

For NS_CaseInFileNameExt support.

Modified:
    llvm/trunk/include/llvm/DebugInfo/PDB/PDBTypes.h

Modified: llvm/trunk/include/llvm/DebugInfo/PDB/PDBTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/PDB/PDBTypes.h?rev=327933&r1=327932&r2=327933&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/PDB/PDBTypes.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/PDB/PDBTypes.h Mon Mar 19 18:04:21 2018
@@ -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.




More information about the llvm-commits mailing list