Add type to FileSpec::PathSyntax enum.
authorDon Hinton <hintonda@gmail.com>
Fri, 3 Nov 2017 14:59:36 +0000 (14:59 +0000)
committerDon Hinton <hintonda@gmail.com>
Fri, 3 Nov 2017 14:59:36 +0000 (14:59 +0000)
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

llvm-svn: 317327

lldb/include/lldb/Utility/FileSpec.h

index 67926d0..55d44d8 100644 (file)
@@ -61,7 +61,7 @@ namespace lldb_private {
 //----------------------------------------------------------------------
 class FileSpec {
 public:
-  enum PathSyntax {
+  enum PathSyntax : unsigned char {
     ePathSyntaxPosix,
     ePathSyntaxWindows,
     ePathSyntaxHostNative