[cfe-commits] r101787 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Rafael Espindola rafael.espindola at gmail.com
Mon Apr 19 09:58:20 PDT 2010


Author: rafael
Date: Mon Apr 19 11:58:20 2010
New Revision: 101787

URL: http://llvm.org/viewvc/llvm-project?rev=101787&view=rev
Log:
Add comment explaning the use of c99 inline in c++.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=101787&r1=101786&r2=101787&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Apr 19 11:58:20 2010
@@ -315,6 +315,10 @@
                                        == TSK_ExplicitInstantiationDeclaration)
     return CodeGenModule::GVA_C99Inline;
 
+  // If this is a virtual method and its class has a key method in another
+  // translation unit, we know that this method will be present in that
+  // translation unit. In this translation unit we will use this method
+  // only for inlining and analysis. This is the semantics of c99 inline.
   if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) {
     const CXXRecordDecl *RD = MD->getParent();
     if (MD->isVirtual() &&





More information about the cfe-commits mailing list