diff options
Diffstat (limited to 'llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp')
-rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 88fd4a41386..0a6d7d331d3 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -337,7 +337,7 @@ FixConstantOperandsForInstr(Instruction* vmInstr, if (constantThatMustBeLoaded) { // register the value so it is emitted in the assembly - method->getMachineCode().addToConstantPool( + MachineCodeForMethod::get(method).addToConstantPool( cast<ConstPoolVal>(opValue)); } } @@ -372,7 +372,7 @@ FixConstantOperandsForInstr(Instruction* vmInstr, if (isa<ConstPoolVal>(oldVal)) { // register the value so it is emitted in the assembly - method->getMachineCode().addToConstantPool( + MachineCodeForMethod::get(method).addToConstantPool( cast<ConstPoolVal>(oldVal)); } } |