]> granicus.if.org Git - clang/commit
Add pointer types to global named register
authorRenato Golin <renato.golin@linaro.org>
Thu, 5 Jun 2014 16:45:22 +0000 (16:45 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 5 Jun 2014 16:45:22 +0000 (16:45 +0000)
commit6649699a62886e564642cf5cb0cd067a89f5ca42
treea2390e3cfb782d6ef6682a6c7fd00ea016dc3931
parent705e8b161676304b8f4dabdf819ae0909d10c69a
Add pointer types to global named register

This patch adds support for pointer types in global named registers variables.
It'll be lowered as a pair of read/write_register and inttoptr/ptrtoint calls.
Also adds some early checks on types on SemaDecl to avoid the assert.

Tests changed accordingly. (PR19837)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210274 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CGExpr.cpp
lib/Sema/SemaDecl.cpp
test/CodeGen/named_reg_global.c
test/Sema/asm.c