diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-01 22:06:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-01 22:06:46 +0000 |
commit | 31e2c7b4c13c2f31774614b1124533628958d0cd (patch) | |
tree | 16d1c03e82f30e19c5c071310755e25f1de89e02 /include/llvm/CodeGen/MachineOperand.h | |
parent | 8bff7c960c0e52258158edcbb96cfe528f335f34 (diff) | |
download | external_llvm-31e2c7b4c13c2f31774614b1124533628958d0cd.zip external_llvm-31e2c7b4c13c2f31774614b1124533628958d0cd.tar.gz external_llvm-31e2c7b4c13c2f31774614b1124533628958d0cd.tar.bz2 |
Remove Offset from ExternalSybmol MachineOperands, this is unused (and at least partly unsupported, in X86 encoding at least).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineOperand.h')
-rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index e18cc86..741ed99 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -432,11 +432,11 @@ public: Op.setTargetFlags(TargetFlags); return Op; } - static MachineOperand CreateES(const char *SymName, int64_t Offset = 0, + static MachineOperand CreateES(const char *SymName, unsigned char TargetFlags = 0) { MachineOperand Op(MachineOperand::MO_ExternalSymbol); Op.Contents.OffsetedInfo.Val.SymbolName = SymName; - Op.setOffset(Offset); + Op.setOffset(0); // Offset is always 0. Op.setTargetFlags(TargetFlags); return Op; } |