Add FIXME
authorJim Grosbach <grosbach@apple.com>
Fri, 10 Dec 2010 23:41:10 +0000 (23:41 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 10 Dec 2010 23:41:10 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMMCCodeEmitter.cpp

index 0bca50eb349af91dd57757eac88eb6363e709c09..833bd22c7482dbf253c71dd0f87c5a38133187e6 100644 (file)
@@ -495,6 +495,8 @@ getThumbCBTargetOpValue(const MCInst &MI, unsigned OpIdx,
 uint32_t ARMMCCodeEmitter::
 getBranchTargetOpValue(const MCInst &MI, unsigned OpIdx,
                        SmallVectorImpl<MCFixup> &Fixups) const {
+  // FIXME: This really, really shouldn't use TargetMachine. We don't want
+  // coupling between MC and TM anywhere we can help it.
   const ARMSubtarget &Subtarget = TM.getSubtarget<ARMSubtarget>();
   if (Subtarget.isThumb2())
     return ::getBranchTargetOpValue(MI, OpIdx, ARM::fixup_t2_branch, Fixups);