diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 14:53:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-06 14:53:14 +0000 |
commit | 2303c9dd69476d045af7cee94e112dd77d22fd28 (patch) | |
tree | 375625044ce3d1b57ac71a67d0f78d2a9c0073c9 /include/llvm/MC/MCStreamer.h | |
parent | 03a83a3f41c4763974b6d9d9aff852c9611db44f (diff) |
Add an EmitAbsValue helper method and use it in cases where we want to be sure
that no relocations are used (on MochO).
Fixes llc producing different output from llc + llvm-mc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCStreamer.h')
-rw-r--r-- | include/llvm/MC/MCStreamer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h index d89ee9ae12..fce076a57e 100644 --- a/include/llvm/MC/MCStreamer.h +++ b/include/llvm/MC/MCStreamer.h @@ -249,6 +249,11 @@ namespace llvm { virtual void EmitIntValue(uint64_t Value, unsigned Size, unsigned AddrSpace = 0); + /// EmitAbsValue - Emit the Value, but try to avoid relocations. On MachO + /// this is done by producing + /// foo = value + /// .long foo + void EmitAbsValue(const MCExpr *Value, unsigned Size); virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0) = 0; |