]> granicus.if.org Git - clang/commitdiff
Will I ever get used to CamelCase? Will I ever like capitols for
authorMike Stump <mrs@apple.com>
Tue, 4 Aug 2009 20:06:48 +0000 (20:06 +0000)
committerMike Stump <mrs@apple.com>
Tue, 4 Aug 2009 20:06:48 +0000 (20:06 +0000)
random variables?
  --This line, and those below, will be ignored--

M    lib/CodeGen/CGCXX.cpp

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

lib/CodeGen/CGCXX.cpp

index 356d31829be5c6e98da530bafc2d27a254301e2a..21fba1457155d8b011499e45acce37be50caa671 100644 (file)
@@ -164,8 +164,6 @@ static bool
 GetNestedPaths(llvm::SmallVectorImpl<const CXXRecordDecl *> &NestedBasePaths,
                const CXXRecordDecl *ClassDecl,
                const CXXRecordDecl *BaseClassDecl) {
-  assert(!ClassDecl->isPolymorphic() && 
-         "FIXME: We don't support polymorphic classes yet!");
   for (CXXRecordDecl::base_class_const_iterator i = ClassDecl->bases_begin(),
       e = ClassDecl->bases_end(); i != e; ++i) {
     if (i->isVirtual())
@@ -493,10 +491,10 @@ const char *CodeGenModule::getMangledCXXDtorName(const CXXDestructorDecl *D,
 llvm::Constant *CodeGenFunction::GenerateRtti(const CXXRecordDecl *RD) {
   llvm::Type *Ptr8Ty;
   Ptr8Ty = llvm::PointerType::get(llvm::Type::Int8Ty, 0);
-  llvm::Constant *rtti = llvm::Constant::getNullValue(Ptr8Ty);
+  llvm::Constant *Rtti = llvm::Constant::getNullValue(Ptr8Ty);
 
   if (!getContext().getLangOptions().Rtti)
-    return rtti;
+    return Rtti;
 
   llvm::SmallString<256> OutName;
   llvm::raw_svector_ostream Out(OutName);
@@ -519,10 +517,10 @@ llvm::Constant *CodeGenFunction::GenerateRtti(const CXXRecordDecl *RD) {
   llvm::Constant *C;
   llvm::ArrayType *type = llvm::ArrayType::get(Ptr8Ty, info.size());
   C = llvm::ConstantArray::get(type, info);
-  rtti = new llvm::GlobalVariable(CGM.getModule(), type, true, linktype, C,
+  Rtti = new llvm::GlobalVariable(CGM.getModule(), type, true, linktype, C,
                                   Name);
-  rtti = llvm::ConstantExpr::getBitCast(rtti, Ptr8Ty);
-  return rtti;
+  Rtti = llvm::ConstantExpr::getBitCast(Rtti, Ptr8Ty);
+  return Rtti;
 }
 
 llvm::Value *CodeGenFunction::GenerateVtable(const CXXRecordDecl *RD) {