diff options
author | Mike Stump <mrs@apple.com> | 2009-02-14 22:49:33 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-14 22:49:33 +0000 |
commit | 30395dd7b77ec1abfae9ebfcacf86f5d72b91fef (patch) | |
tree | 81934bf033519de3cd1400adce27733be7bc0f32 /lib/CodeGen/CGBlocks.cpp | |
parent | 67a6448a8d52ae46d1cba4e474f9f6b3968d2ff9 (diff) |
Use getNameAsCString instead of getNameAsString and reflow the type.
Thanks Anders.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index ecc9406b2f..f1788b0db7 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -147,9 +147,9 @@ llvm::Constant *CodeGenFunction::BuildBlockLiteralTmp(const BlockExpr *BE) { Elts.push_back(C); // __FuncPtr - std::string Name; + const char *Name; if (const NamedDecl *ND = dyn_cast<NamedDecl>(CurFuncDecl)) - Name = ND->getNameAsString(); + Name = ND->getNameAsCString(); BlockInfo Info(0, Name); llvm::Function *Fn = CodeGenFunction(*this).GenerateBlockFunction(BE, Info); Elts.push_back(Fn); @@ -292,7 +292,7 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr* E) { } llvm::Constant * -CodeGenModule::GetAddrOfGlobalBlock(const BlockExpr *BE, std::string n) { +CodeGenModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) { // Generate the block descriptor. const llvm::Type *UnsignedLongTy = Types.ConvertType(Context.UnsignedLongTy); const llvm::IntegerType *IntTy = cast<llvm::IntegerType>( |