[PATCH] D28526: [ARM] Add diagnostics when initialization global variables with ropi/rwpi

Weiming Zhao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 23 12:38:10 PST 2017


weimingz updated this revision to Diff 85446.
weimingz edited the summary of this revision.
weimingz added a comment.

As Eli sugguested, it's better to check it in Sema. In order to access RelocationModel in Sema, we moved it from CodeGenOpts to LangOpts


https://reviews.llvm.org/D28526

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Basic/LangOptions.h
  include/clang/Frontend/CodeGenOptions.h
  lib/AST/ExprConstant.cpp
  lib/CodeGen/BackendUtil.cpp
  lib/Frontend/CodeGenOptions.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/arm-ropi-rwpi.c
  test/Sema/ropi-rwpi.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28526.85446.patch
Type: text/x-patch
Size: 11603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170123/d90ae419/attachment-0001.bin>


More information about the cfe-commits mailing list