[Lldb-commits] [lldb] r317327 - Add type to FileSpec::PathSyntax enum.

Don Hinton via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 3 07:59:36 PDT 2017


Author: dhinton
Date: Fri Nov  3 07:59:36 2017
New Revision: 317327

URL: http://llvm.org/viewvc/llvm-project?rev=317327&view=rev
Log:
Add type to FileSpec::PathSyntax enum.

Summary:
Add type to FileSpec::PathSyntax enum to decrease size for
FileSpec on systems with 32 bit pointers.

Thanks to @zturner for pointing this out.

Differential Revision: https://reviews.llvm.org/D39574

Modified:
    lldb/trunk/include/lldb/Utility/FileSpec.h

Modified: lldb/trunk/include/lldb/Utility/FileSpec.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/FileSpec.h?rev=317327&r1=317326&r2=317327&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/FileSpec.h (original)
+++ lldb/trunk/include/lldb/Utility/FileSpec.h Fri Nov  3 07:59:36 2017
@@ -61,7 +61,7 @@ namespace lldb_private {
 //----------------------------------------------------------------------
 class FileSpec {
 public:
-  enum PathSyntax {
+  enum PathSyntax : unsigned char {
     ePathSyntaxPosix,
     ePathSyntaxWindows,
     ePathSyntaxHostNative




More information about the lldb-commits mailing list