mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +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:
@@ -353,9 +353,11 @@ bool StripDeadDebugInfo::runOnModule(Module &M) {
|
||||
// sure that an assert is hit if the location of the subprogram array
|
||||
// changes. This is just to make sure that this is updated if such an
|
||||
// event occurs.
|
||||
assert(DIC->getNumOperands() >= 5 && SPs == DIC->getOperand(4) &&
|
||||
"DICompileUnits is expected to store Subprograms in operand 4.");
|
||||
DIC->replaceOperandWith(4, MDNode::get(C, LiveSubprograms));
|
||||
assert(DIC->getNumOperands() >= 10 &&
|
||||
SPs == DIC->getOperand(9) &&
|
||||
"DICompileUnits is expected to store Subprograms in operand "
|
||||
"9.");
|
||||
DIC->replaceOperandWith(9, MDNode::get(C, LiveSubprograms));
|
||||
Changed = true;
|
||||
}
|
||||
|
||||
@@ -364,10 +366,11 @@ bool StripDeadDebugInfo::runOnModule(Module &M) {
|
||||
// make sure that an assert is hit if the location of the subprogram array
|
||||
// changes. This is just to make sure that this index is updated if such
|
||||
// an event occurs.
|
||||
assert(
|
||||
DIC->getNumOperands() >= 6 && GVs == DIC->getOperand(5) &&
|
||||
"DICompileUnits is expected to store Global Variables in operand 5.");
|
||||
DIC->replaceOperandWith(5, MDNode::get(C, LiveGlobalVariables));
|
||||
assert(DIC->getNumOperands() >= 11 &&
|
||||
GVs == DIC->getOperand(10) &&
|
||||
"DICompileUnits is expected to store Global Variables in operand "
|
||||
"10.");
|
||||
DIC->replaceOperandWith(10, MDNode::get(C, LiveGlobalVariables));
|
||||
Changed = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user