llvm.org GIT mirror llvm / 66192e4
DebugInfo: Add implicit conversion from DISubprogram to DIScope As a follow-up to r234850, add an implicit conversion from `DISubprogram` to `DIScope` to support Kaleidoscope Ch. 8. This also reverts that band-aid from r234890. (/me learns *again* to build Kaleidoscope before commit...) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234904 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 4 years ago
2 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
12331233 CreateFunctionType(Args.size(), Unit), false /* internal linkage */,
12341234 true /* definition */, ScopeLine, DIDescriptor::FlagPrototyped, false, F);
12351235
1236 KSDbgInfo.FnScopeMap[this] = (DIScope)SP;
1236 KSDbgInfo.FnScopeMap[this] = SP;
12371237 return F;
12381238 }
12391239
436436 : N(const_cast(N)) {}
437437
438438 operator DIDescriptor() const { return N; }
439 operator DIScope() const { return N; }
439440 operator MDSubprogram *() const { return N; }
440441 MDSubprogram *operator->() const { return N; }
441442 MDSubprogram &operator*() const { return *N; }