mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Revert "DI: Fold constant arguments into a single MDString"
This reverts commit r218914 while I investigate some bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -79,8 +79,14 @@ MDNode *DebugLoc::getScopeNode(const LLVMContext &Ctx) const {
|
||||
DebugLoc DebugLoc::getFnDebugLoc(const LLVMContext &Ctx) const {
|
||||
const MDNode *Scope = getScopeNode(Ctx);
|
||||
DISubprogram SP = getDISubprogram(Scope);
|
||||
if (SP.isSubprogram())
|
||||
return DebugLoc::get(SP.getScopeLineNumber(), 0, SP);
|
||||
if (SP.isSubprogram()) {
|
||||
// Check for number of operands since the compatibility is
|
||||
// cheap here. FIXME: Name the magic constant.
|
||||
if (SP->getNumOperands() > 19)
|
||||
return DebugLoc::get(SP.getScopeLineNumber(), 0, SP);
|
||||
else
|
||||
return DebugLoc::get(SP.getLineNumber(), 0, SP);
|
||||
}
|
||||
|
||||
return DebugLoc();
|
||||
}
|
||||
|
Reference in New Issue
Block a user