mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Just use getParent() instead of getModuleFromVal when the value is a Function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40cf12fe77
commit
79b78a43ec
@ -2129,7 +2129,7 @@ void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
|
||||
} else if (const MDNode *N = dyn_cast<MDNode>(this)) {
|
||||
const Function *F = N->getFunction();
|
||||
SlotTracker SlotTable(F);
|
||||
AssemblyWriter W(OS, SlotTable, F ? getModuleFromVal(F) : 0, AAW);
|
||||
AssemblyWriter W(OS, SlotTable, F ? F->getParent() : 0, AAW);
|
||||
W.printMDNodeBody(N);
|
||||
} else if (const NamedMDNode *N = dyn_cast<NamedMDNode>(this)) {
|
||||
SlotTracker SlotTable(N->getParent());
|
||||
|
Loading…
x
Reference in New Issue
Block a user