diff options
author | Owen Anderson <resistor@mac.com> | 2008-09-06 01:11:01 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-09-06 01:11:01 +0000 |
commit | 3b217c6f5c21a5f16670b14e3beeaff5ee74df1c (patch) | |
tree | a5f4f018f23e1f64359fc4ad38f1304932f5e528 /lib/Target/X86/X86InstrBuilder.h | |
parent | 99d6dca2f8b58c835996431cc5277dcedcf4e0a4 (diff) |
Fix constant pool loads, and remove broken versions of addConstantPoolReference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrBuilder.h')
-rw-r--r-- | lib/Target/X86/X86InstrBuilder.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/X86/X86InstrBuilder.h b/lib/Target/X86/X86InstrBuilder.h index d4e10bbb50..b5924cb761 100644 --- a/lib/Target/X86/X86InstrBuilder.h +++ b/lib/Target/X86/X86InstrBuilder.h @@ -119,9 +119,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0) { /// offset to be added as well. /// inline const MachineInstrBuilder & -addConstantPoolReference(const MachineInstrBuilder &MIB, unsigned CPI, - int Offset = 0) { - assert(Offset == 0 && "Non-zero offsets not supported!"); +addConstantPoolReference(const MachineInstrBuilder &MIB, unsigned CPI) { return MIB.addReg(0).addImm(1).addReg(0).addConstantPoolIndex(CPI); } |