mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +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:
@ -1643,11 +1643,11 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM,
|
||||
if (isDebugValue() && MO.isMetadata()) {
|
||||
// Pretty print DBG_VALUE instructions.
|
||||
const MDNode *MD = MO.getMetadata();
|
||||
DIDescriptor DI(MD);
|
||||
DIVariable DIV(MD);
|
||||
|
||||
if (DI.isVariable() && !DIV.getName().empty())
|
||||
OS << "!\"" << DIV.getName() << '\"';
|
||||
if (MD->getNumOperands() >= 2)
|
||||
if (const MDString *MDS = dyn_cast<MDString>(MD->getOperand(2)))
|
||||
OS << "!\"" << MDS->getString() << '\"';
|
||||
else
|
||||
MO.print(OS, TM);
|
||||
else
|
||||
MO.print(OS, TM);
|
||||
} else if (TM && (isInsertSubreg() || isRegSequence()) && MO.isImm()) {
|
||||
|
Reference in New Issue
Block a user