[PATCH] D23610: [ARM] Add pre-defined macros for ROPI, RWPI and FPIC

Oliver Stannard via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 17 07:29:32 PDT 2016


olista01 created this revision.
olista01 added reviewers: rengolin, t.p.northover.
olista01 added a subscriber: cfe-commits.
olista01 set the repository for this revision to rL LLVM.
Herald added subscribers: samparker, rengolin, aemerson.

This adds pre-defined macros to test for code being compiled in the FPIC, ROPI and RWPI position-independence modes. The names of the macros match those used by armcc, which also implements all of the PIC modes.

Repository:
  rL LLVM

https://reviews.llvm.org/D23610

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/Options.td
  lib/Basic/Targets.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/Preprocessor/arm-pic-predefines.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23610.68347.patch
Type: text/x-patch
Size: 5382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160817/fe5385c0/attachment.bin>


More information about the cfe-commits mailing list