]> granicus.if.org Git - clang/commitdiff
Rename BaseLLVMType to NonVirtualBaseLLVMType.
authorAnders Carlsson <andersca@mac.com>
Sun, 21 Nov 2010 23:59:45 +0000 (23:59 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 21 Nov 2010 23:59:45 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119956 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRecordLayout.h
lib/CodeGen/CGRecordLayoutBuilder.cpp

index dd10024dd452f40d87595ce5ced7fe8c2e5a2534..ffdbc292d30dc931a4dbb4887fcc0302ee385f5e 100644 (file)
@@ -177,7 +177,7 @@ private:
 
   /// The LLVM type for the non-virtual part of this record layout, used for
   /// laying out the record as a base.
-  const llvm::Type *BaseLLVMType;
+  const llvm::Type *NonVirtualBaseLLVMType;
 
   /// Map from (non-bit-field) struct field to the corresponding llvm struct
   /// type field no. This info is populated by record builder.
@@ -196,9 +196,10 @@ private:
   bool IsZeroInitializable : 1;
 
 public:
-  CGRecordLayout(const llvm::Type *LLVMType, const llvm::Type *BaseLLVMType,
+  CGRecordLayout(const llvm::Type *LLVMType,
+                 const llvm::Type *NonVirtualBaseLLVMType,
                  bool IsZeroInitializable)
-    : LLVMType(LLVMType), BaseLLVMType(BaseLLVMType), 
+    : LLVMType(LLVMType), NonVirtualBaseLLVMType(NonVirtualBaseLLVMType), 
     IsZeroInitializable(IsZeroInitializable) {}
 
   /// \brief Return the LLVM type associated with this record.
@@ -206,8 +207,8 @@ public:
     return LLVMType;
   }
 
-  const llvm::Type *getBaseLLVMType() const {
-      return BaseLLVMType;
+  const llvm::Type *getNonVirtualBaseLLVMType() const {
+      return NonVirtualBaseLLVMType;
   }
 
   /// \brief Check whether this struct can be C++ zero-initialized
index 001c344510232958c79afa4ab00633c44a9d6101..0d9c6d4964207230e2ffd318140bc18a960996bf 100644 (file)
@@ -832,8 +832,8 @@ CGRecordLayout *CodeGenTypes::ComputeRecordLayout(const RecordDecl *D) {
 void CGRecordLayout::print(llvm::raw_ostream &OS) const {
   OS << "<CGRecordLayout\n";
   OS << "  LLVMType:" << *LLVMType << "\n";
-  if (BaseLLVMType)
-    OS << "  BaseLLVMType:" << *BaseLLVMType << "\n"; 
+  if (NonVirtualBaseLLVMType)
+    OS << "  NonVirtualBaseLLVMType:" << *NonVirtualBaseLLVMType << "\n"; 
   OS << "  IsZeroInitializable:" << IsZeroInitializable << "\n";
   OS << "  BitFields:[\n";