diff options
author | Owen Anderson <resistor@mac.com> | 2010-12-13 19:31:11 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-12-13 19:31:11 +0000 |
commit | c266600bec4b5ba0ee93ffdfeaafcab8f1295145 (patch) | |
tree | 52aa2e03e9da5a039c31ab73611b54465dab89fe /lib/Target/ARM/ARMCodeEmitter.cpp | |
parent | 56a2535474dd4482c432b3c75c3dab4b2f3dd1e2 (diff) | |
download | llvm-c266600bec4b5ba0ee93ffdfeaafcab8f1295145.tar.gz llvm-c266600bec4b5ba0ee93ffdfeaafcab8f1295145.tar.bz2 llvm-c266600bec4b5ba0ee93ffdfeaafcab8f1295145.tar.xz |
In Thumb2, direct branches can be encoded as either a "short" conditional branch with a null predicate, or
as a "long" direct branch. While the mnemonics are the same, they encode the branch offset differently, and
the Darwin assembler appears to prefer the "long" form for direct branches. Thus, in the name of bitwise
equivalence, provide encoding and fixup support for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMCodeEmitter.cpp')
-rw-r--r-- | lib/Target/ARM/ARMCodeEmitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index 823947395f..101c07b4db 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -183,6 +183,8 @@ namespace { const { return 0; } unsigned getBranchTargetOpValue(const MachineInstr &MI, unsigned Op) const { return 0; } + unsigned getUnconditionalBranchTargetOpValue(const MachineInstr &MI, + unsigned Op) const { return 0; } unsigned getCCOutOpValue(const MachineInstr &MI, unsigned Op) const { return 0; } unsigned getSOImmOpValue(const MachineInstr &MI, unsigned Op) |