mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
fix refactoro
llvm-svn: 92349
This commit is contained in:
parent
d8516bddb2
commit
af22bc2328
@ -2041,7 +2041,7 @@ void Value::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
|
||||
if (const Instruction *I = dyn_cast<Instruction>(this)) {
|
||||
const Function *F = I->getParent() ? I->getParent()->getParent() : 0;
|
||||
SlotTracker SlotTable(F);
|
||||
AssemblyWriter W(OS, SlotTable, getModuleFromVal(F), AAW);
|
||||
AssemblyWriter W(OS, SlotTable, getModuleFromVal(I), AAW);
|
||||
W.printInstruction(*I);
|
||||
} else if (const BasicBlock *BB = dyn_cast<BasicBlock>(this)) {
|
||||
SlotTracker SlotTable(BB->getParent());
|
||||
|
Loading…
Reference in New Issue
Block a user