mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Debug Info: clean up usage of Verify.
No functionality change. It should suffice to check the type of a debug info metadata, instead of calling Verify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -389,8 +389,8 @@ struct BreakpointPrinter : public ModulePass {
|
||||
for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) {
|
||||
std::string Name;
|
||||
DISubprogram SP(NMD->getOperand(i));
|
||||
if (SP.Verify())
|
||||
getContextName(SP.getContext(), Name);
|
||||
assert(SP.isSubprogram());
|
||||
getContextName(SP.getContext(), Name);
|
||||
Name = Name + SP.getDisplayName().str();
|
||||
if (!Name.empty() && Processed.insert(Name)) {
|
||||
Out << Name << "\n";
|
||||
|
Reference in New Issue
Block a user