[PATCH] D27499: CFI-icall on Thumb

Evgeniy Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 15:41:23 PST 2016


eugenis added inline comments.


================
Comment at: lib/Transforms/IPO/LowerTypeTests.cpp:654
     default:
       report_fatal_error("Unsupported architecture for jump tables");
   }
----------------
pcc wrote:
> I suspect that we will want to land here for thumbv5, at least until/unless we have an implementation of jump tables for that architecture.
How do I detect thumb2 (that's what this code actually depends on)?
I don't see a way to access TargetMachine from here, and the triple alone is not enough (e.g. -mcpu=cortex-a8 enables thumb2).


Repository:
  rL LLVM

https://reviews.llvm.org/D27499





More information about the llvm-commits mailing list