mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Oops...I committed too much.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -117,10 +117,10 @@ SourceFileInfo::SourceFileInfo(const GlobalVariable *Desc,
|
||||
if (ConstantInt *CUI = dyn_cast<ConstantInt>(CS->getOperand(1)))
|
||||
Version = CUI->getZExtValue();
|
||||
|
||||
const char *SI = GetConstantStringInfo(CS->getOperand(3));
|
||||
BaseName = (SI ? SI : "");
|
||||
SI = GetConstantStringInfo(CS->getOperand(4));
|
||||
Directory = (SI ? SI : "");
|
||||
if (!GetConstantStringInfo(CS->getOperand(3), BaseName))
|
||||
BaseName = "";
|
||||
if (!GetConstantStringInfo(CS->getOperand(4), Directory))
|
||||
Directory = "";
|
||||
}
|
||||
}
|
||||
|
||||
@ -160,8 +160,8 @@ SourceFunctionInfo::SourceFunctionInfo(ProgramInfo &PI,
|
||||
SourceFile = &PI.getSourceFile(GV);
|
||||
|
||||
// Entry #2 is the function name.
|
||||
const char *SI = GetConstantStringInfo(CS->getOperand(2));
|
||||
Name = (SI ? SI : "");
|
||||
if (!GetConstantStringInfo(CS->getOperand(2), Name))
|
||||
Name = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user