]> granicus.if.org Git - clang/commitdiff
DI: Clarify meaning of createTempFunctionFwdDecl() arg, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 26 Aug 2015 22:21:09 +0000 (22:21 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 26 Aug 2015 22:21:09 +0000 (22:21 +0000)
I stared at `false /*declaration*/` for quite some time before giving up
and checking the actual function to see what it meant.  Replacing with
`/* isDefinition = */ false` to save myself effort later.

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

lib/CodeGen/CGDebugInfo.cpp

index eaa1e250eb3ab533d3e4ea5f83f3c8bbd2f4b79c..e09e57a231e84c60fba7da971199e2ac3c5c35e9 100644 (file)
@@ -2386,7 +2386,7 @@ CGDebugInfo::getFunctionForwardDeclaration(const FunctionDecl *FD) {
   llvm::DISubprogram *SP = DBuilder.createTempFunctionFwdDecl(
       DContext, Name, LinkageName, Unit, Line,
       getOrCreateFunctionType(FD, FnType, Unit), !FD->isExternallyVisible(),
-      false /*declaration*/, 0, Flags, CGM.getLangOpts().Optimize, nullptr,
+      /* isDefinition = */ false, 0, Flags, CGM.getLangOpts().Optimize, nullptr,
       TParamsArray.get(), getFunctionDeclaration(FD));
   const FunctionDecl *CanonDecl = cast<FunctionDecl>(FD->getCanonicalDecl());
   FwdDeclReplaceMap.emplace_back(std::piecewise_construct,