]> granicus.if.org Git - clang/commitdiff
Debug Info: pass in DIScope instead of DIDescriptor in createFieldType.
authorManman Ren <manman.ren@gmail.com>
Sun, 8 Sep 2013 03:45:05 +0000 (03:45 +0000)
committerManman Ren <manman.ren@gmail.com>
Sun, 8 Sep 2013 03:45:05 +0000 (03:45 +0000)
Improve readability. No functionality change.

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

lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h

index b01532a97d0b2c0c3b28e9b41c2fb18ab8a64666..872fb650e54dc53d53da29544bad01ed094f8c69 100644 (file)
@@ -788,7 +788,7 @@ llvm::DIType CGDebugInfo::createFieldType(StringRef name,
                                           AccessSpecifier AS,
                                           uint64_t offsetInBits,
                                           llvm::DIFile tunit,
-                                          llvm::DIDescriptor scope) {
+                                          llvm::DIScope scope) {
   llvm::DIType debugType = getOrCreateType(type, tunit);
 
   // Get the location for the field.
index a8ba14b8b3fe81714b0d4035c0a29175b9bdee66..8d2f52274705abbcb8620ab5e03a8ca705142ae0 100644 (file)
@@ -179,7 +179,7 @@ class CGDebugInfo {
                                uint64_t sizeInBitsOverride, SourceLocation loc,
                                AccessSpecifier AS, uint64_t offsetInBits,
                                llvm::DIFile tunit,
-                               llvm::DIDescriptor scope);
+                               llvm::DIScope scope);
 
   // Helpers for collecting fields of a record.
   void CollectRecordLambdaFields(const CXXRecordDecl *CXXDecl,