diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 10:43:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 10:43:23 +0000 |
commit | b36052f0e4f59525b34bb4b56648c9121a8beda8 (patch) | |
tree | 402ca21710e0704ba5452e15187958489882fec3 /include | |
parent | cf871e5abff63a53f9e97ff9e37fb7297d0cb847 (diff) | |
download | llvm-b36052f0e4f59525b34bb4b56648c9121a8beda8.tar.gz llvm-b36052f0e4f59525b34bb4b56648c9121a8beda8.tar.bz2 llvm-b36052f0e4f59525b34bb4b56648c9121a8beda8.tar.xz |
MCCodeEmitter: Add target independent fixup flag for is-pc-relative.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCCodeEmitter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/MC/MCCodeEmitter.h b/include/llvm/MC/MCCodeEmitter.h index fe1aff4f8c..010a2e5566 100644 --- a/include/llvm/MC/MCCodeEmitter.h +++ b/include/llvm/MC/MCCodeEmitter.h @@ -22,6 +22,12 @@ template<typename T> class SmallVectorImpl; /// MCFixupKindInfo - Target independent information on a fixup kind. struct MCFixupKindInfo { + enum FixupKindFlags { + /// Is this fixup kind PCrelative. This is used by the assembler backend to + /// evaluate fixup values in a target independent manner when possible. + FKF_IsPCRel = (1 << 0) + }; + /// A target specific name for the fixup kind. The names will be unique for /// distinct kinds on any given target. const char *Name; @@ -36,6 +42,9 @@ struct MCFixupKindInfo { /// The number of bits written by this fixup. The bits are assumed to be /// contiguous. unsigned TargetSize; + + /// Flags describing additional information on this fixup kind. + unsigned Flags; }; /// MCCodeEmitter - Generic instruction encoding interface. |