mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
MDNodes are not Constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3da076ffef
commit
e983438746
@ -1057,11 +1057,6 @@ static void WriteConstantInternal(raw_ostream &Out, const Constant *CV,
|
||||
return;
|
||||
}
|
||||
|
||||
if (const MDNode *Node = dyn_cast<MDNode>(CV)) {
|
||||
Out << "!" << Machine->getMetadataSlot(Node);
|
||||
return;
|
||||
}
|
||||
|
||||
if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
|
||||
Out << CE->getOpcodeName();
|
||||
WriteOptimizationInfo(Out, CE);
|
||||
|
Loading…
Reference in New Issue
Block a user