[cfe-commits] r119956 - in /cfe/trunk/lib/CodeGen: CGRecordLayout.h CGRecordLayoutBuilder.cpp

Anders Carlsson andersca at mac.com
Sun Nov 21 15:59:45 PST 2010


Author: andersca
Date: Sun Nov 21 17:59:45 2010
New Revision: 119956

URL: http://llvm.org/viewvc/llvm-project?rev=119956&view=rev
Log:
Rename BaseLLVMType to NonVirtualBaseLLVMType.

Modified:
    cfe/trunk/lib/CodeGen/CGRecordLayout.h
    cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp

Modified: cfe/trunk/lib/CodeGen/CGRecordLayout.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayout.h?rev=119956&r1=119955&r2=119956&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayout.h (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayout.h Sun Nov 21 17:59:45 2010
@@ -177,7 +177,7 @@
 
   /// 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 @@
   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 @@
     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

Modified: cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp?rev=119956&r1=119955&r2=119956&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Sun Nov 21 17:59:45 2010
@@ -832,8 +832,8 @@
 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";
 





More information about the cfe-commits mailing list