[Lldb-commits] [lldb] r216034 - Changes uint to uint32_t.

Zachary Turner zturner at google.com
Tue Aug 19 16:28:11 PDT 2014


Author: zturner
Date: Tue Aug 19 18:28:11 2014
New Revision: 216034

URL: http://llvm.org/viewvc/llvm-project?rev=216034&view=rev
Log:
Changes uint to uint32_t.

This fixes the build broken as a result of r216026.

Modified:
    lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
    lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h

Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp?rev=216034&r1=216033&r2=216034&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp Tue Aug 19 18:28:11 2014
@@ -45,10 +45,10 @@ AppleObjCTypeEncodingParser::ReadStructE
     return buffer.GetString();
 }
 
-uint
+uint32_t
 AppleObjCTypeEncodingParser::ReadNumber (lldb_utility::StringLexer& type)
 {
-    uint total = 0;
+    uint32_t total = 0;
     while (type.HasAtLeast(1) && isdigit(type.Peek()))
            total = 10*total + (type.Next() - '0');
     return total;
@@ -90,7 +90,7 @@ AppleObjCTypeEncodingParser::BuildUnion
 }
 
 clang::QualType
-AppleObjCTypeEncodingParser::BuildAggregate (clang::ASTContext &ast_ctx, lldb_utility::StringLexer& type, bool allow_unknownanytype, char opener, char closer, uint kind)
+AppleObjCTypeEncodingParser::BuildAggregate (clang::ASTContext &ast_ctx, lldb_utility::StringLexer& type, bool allow_unknownanytype, char opener, char closer, uint32_t kind)
 {
     if (!type.NextIf(opener))
         return clang::QualType();
@@ -148,7 +148,7 @@ AppleObjCTypeEncodingParser::BuildArray
 {
     if (!type.NextIf('['))
         return clang::QualType();
-    uint size = ReadNumber(type);
+    uint32_t size = ReadNumber(type);
     clang::QualType element_type(BuildType(ast_ctx, type, allow_unknownanytype));
     if (!type.NextIf(']'))
         return clang::QualType();
@@ -214,7 +214,7 @@ AppleObjCTypeEncodingParser::BuildType (
     
     if (type.NextIf('b'))
     {
-        uint size = ReadNumber(type);
+        uint32_t size = ReadNumber(type);
         if (bitfield_bit_size)
         {
             *bitfield_bit_size = size;

Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h?rev=216034&r1=216033&r2=216034&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h Tue Aug 19 18:28:11 2014
@@ -51,7 +51,7 @@ namespace lldb_private {
         BuildStruct (clang::ASTContext &ast_ctx, lldb_utility::StringLexer& type, bool allow_unknownanytype);
         
         clang::QualType
-        BuildAggregate (clang::ASTContext &ast_ctx, lldb_utility::StringLexer& type, bool allow_unknownanytype, char opener, char closer, uint kind);
+        BuildAggregate (clang::ASTContext &ast_ctx, lldb_utility::StringLexer& type, bool allow_unknownanytype, char opener, char closer, uint32_t kind);
         
         clang::QualType
         BuildUnion (clang::ASTContext &ast_ctx, lldb_utility::StringLexer& type, bool allow_unknownanytype);
@@ -68,7 +68,7 @@ namespace lldb_private {
         std::string
         ReadStructElementName(lldb_utility::StringLexer& type);
         
-        uint
+        uint32_t
         ReadNumber (lldb_utility::StringLexer& type);
 
     };





More information about the lldb-commits mailing list