CurLoc = CGM.getContext().getSourceManager().getInstantiationLoc(Loc);
}
-/// getContext - Get context info for the decl.
-llvm::DIDescriptor CGDebugInfo::getContext(const VarDecl *Decl,
- llvm::DIDescriptor &CompileUnit) {
+/// getContextDescriptor - Get context info for the decl.
+llvm::DIDescriptor CGDebugInfo::getContextDescriptor(const VarDecl *Decl,
+ llvm::DIDescriptor &CompileUnit) {
if (Decl->isFileVarDecl())
return CompileUnit;
if (Decl->getDeclContext()->isFunctionOrMethod()) {
ArrayType::Normal, 0);
}
llvm::StringRef DeclName = Decl->getName();
- DebugFactory.CreateGlobalVariable(getContext(Decl, Unit), DeclName, DeclName,
- llvm::StringRef(), Unit, LineNo,
+ DebugFactory.CreateGlobalVariable(getContextDescriptor(Decl, Unit), DeclName,
+ DeclName, llvm::StringRef(), Unit, LineNo,
getOrCreateType(T, Unit),
Var->hasInternalLinkage(),
true/*definition*/, Var);
void EmitDeclare(const BlockDeclRefExpr *BDRE, unsigned Tag, llvm::Value *AI,
CGBuilderTy &Builder, CodeGenFunction *CGF);
- /// getContext - Get context info for the decl.
- llvm::DIDescriptor getContext(const VarDecl *Decl,llvm::DIDescriptor &CU);
+ /// getContextDescriptor - Get context info for the decl.
+ llvm::DIDescriptor getContextDescriptor(const VarDecl *Decl,
+ llvm::DIDescriptor &CU);
/// getOrCreateCompileUnit - Get the compile unit from the cache or create a
/// new one if necessary.