]> granicus.if.org Git - clang/commitdiff
Shield clang from LLVM API changes, until the dust settles.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 23 Jul 2009 05:30:36 +0000 (05:30 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 23 Jul 2009 05:30:36 +0000 (05:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76862 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index 962f8a095053160542e238dc464ee4a3e46eed10..80cfeff7f33df9be73014aed5928c9aefa80abb0 100644 (file)
@@ -177,7 +177,9 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy,
       DI->EmitFunctionStart(CGM.getMangledName(FD), RetTy, CurFn, Builder);
     } else {
       // Just use LLVM function name.
-      DI->EmitFunctionStart(Fn->getName().c_str(), 
+      
+      // FIXME: Remove unnecessary conversion to std::string when API settles.
+      DI->EmitFunctionStart(std::string(Fn->getName()).c_str(), 
                             RetTy, CurFn, Builder);
     }
   }