forked from OSchip/llvm-project
parent
ec7ec7c1ac
commit
600dfac30a
|
@ -95,8 +95,7 @@ CodeGenFunction::CreateStaticBlockVarDecl(const VarDecl &D,
|
|||
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurFuncDecl))
|
||||
ContextName = CGM.getMangledName(FD);
|
||||
else if (isa<ObjCMethodDecl>(CurFuncDecl))
|
||||
ContextName = std::string(CurFn->getNameStart(),
|
||||
CurFn->getNameStart() + CurFn->getNameLen());
|
||||
ContextName = CurFn->getName();
|
||||
else
|
||||
assert(0 && "Unknown context for block var decl");
|
||||
|
||||
|
|
|
@ -261,8 +261,8 @@ public:
|
|||
/// load the real and imaginary pieces, returning them as Real/Imag.
|
||||
ComplexPairTy ComplexExprEmitter::EmitLoadOfComplex(llvm::Value *SrcPtr,
|
||||
bool isVolatile) {
|
||||
llvm::SmallString<64> Name(SrcPtr->getNameStart(),
|
||||
SrcPtr->getNameStart()+SrcPtr->getNameLen());
|
||||
llvm::SmallString<64> Name(SrcPtr->getName().begin(),
|
||||
SrcPtr->getName().end());
|
||||
|
||||
llvm::Value *Real=0, *Imag=0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue