Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:Loc

53 void CGDebugInfo::setLocation(SourceLocation Loc) {
55 if (!Loc.isValid()) return;
57 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc);
220 llvm::DIFile CGDebugInfo::getOrCreateFile(SourceLocation Loc) {
221 if (!Loc.isValid())
226 PresumedLoc PLoc = SM.getPresumedLoc(Loc);
256 unsigned CGDebugInfo::getLineNumber(SourceLocation Loc) {
257 if (Loc.isInvalid() && CurLoc.isInvalid())
260 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc);
265 unsigned CGDebugInfo::getColumnNumber(SourceLocation Loc, bool Force) {
271 if (Loc.isInvalid() && CurLoc.isInvalid())
274 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc);
778 SourceLocation loc,
786 llvm::DIFile file = getOrCreateFile(loc);
787 unsigned line = getLineNumber(loc);
1305 SourceLocation Loc) {
1307 llvm::DIType T = getOrCreateType(RTy, getOrCreateFile(Loc));
1314 SourceLocation Loc) {
1316 llvm::DIType T = getOrCreateType(D, getOrCreateFile(Loc));
1465 SourceLocation Loc = PD->getLocation();
1466 llvm::DIFile PUnit = getOrCreateFile(Loc);
1467 unsigned PLine = getLineNumber(Loc);
1539 SourceLocation Loc = PD->getLocation();
1540 llvm::DIFile PUnit = getOrCreateFile(Loc);
1541 unsigned PLine = getLineNumber(Loc);
2201 SourceLocation Loc;
2203 Loc = D->getLocation();
2206 llvm::DIFile Unit = getOrCreateFile(Loc);
2258 unsigned LineNo = getLineNumber(Loc);
2294 void CGDebugInfo::EmitLocation(CGBuilderTy &Builder, SourceLocation Loc,
2298 setLocation(Loc);
2324 void CGDebugInfo::CreateLexicalBlock(SourceLocation Loc) {
2338 void CGDebugInfo::EmitLexicalBlockStart(CGBuilderTy &Builder, SourceLocation Loc) {
2340 setLocation(Loc);
2343 CreateLexicalBlock(Loc);
2346 Builder.SetCurrentDebugLocation(llvm::DebugLoc::get(getLineNumber(Loc),
2347 getColumnNumber(Loc),
2353 void CGDebugInfo::EmitLexicalBlockEnd(CGBuilderTy &Builder, SourceLocation Loc) {
2357 EmitLocation(Builder, Loc);
2691 SourceLocation loc = blockDecl->getCaretLocation();
2692 llvm::DIFile tunit = getOrCreateFile(loc);
2693 unsigned line = getLineNumber(loc);
2694 unsigned column = getColumnNumber(loc);
2703 fields.push_back(createFieldType("__isa", C.VoidPtrTy, 0, loc, AS_public,
2706 fields.push_back(createFieldType("__flags", C.IntTy, 0, loc, AS_public,
2709 fields.push_back(createFieldType("__reserved", C.IntTy, 0, loc, AS_public,
2712 fields.push_back(createFieldType("__FuncPtr", C.VoidPtrTy, 0, loc, AS_public,
2719 0, loc, AS_public,
2769 fields.push_back(createFieldType("this", type, 0, loc, AS_public,
2790 loc, AS_public, offsetInBits, tunit, tunit);