mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -1713,7 +1713,7 @@ DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE(DIGlobalVariable GV) {
|
||||
// it is not a static member.
|
||||
if (!IsStaticMember)
|
||||
addConstantValue(*VariableDIE, CI, GTy);
|
||||
} else if (const ConstantExpr *CE = getMergedGlobalExpr(GV.getConstant())) {
|
||||
} else if (const ConstantExpr *CE = getMergedGlobalExpr(GV->getOperand(11))) {
|
||||
addToAccelTable = true;
|
||||
// GV is a merged global.
|
||||
DIELoc *Loc = new (DIEValueAllocator) DIELoc();
|
||||
|
||||
@@ -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