aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineOperand.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-01 22:06:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-01 22:06:46 +0000
commit9f086b93c3bb001b72590024114ac8c19f5abdaa (patch)
tree16d1c03e82f30e19c5c071310755e25f1de89e02 /include/llvm/CodeGen/MachineOperand.h
parent3dfe01d21e412c113b13e222c0fde9970d258af2 (diff)
downloadexternal_llvm-9f086b93c3bb001b72590024114ac8c19f5abdaa.tar.gz
external_llvm-9f086b93c3bb001b72590024114ac8c19f5abdaa.tar.bz2
external_llvm-9f086b93c3bb001b72590024114ac8c19f5abdaa.zip
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index e18cc86322..741ed99170 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;
}