From: Sanjiv Gupta Date: Sat, 24 Oct 2009 18:08:20 +0000 (+0000) Subject: Add a preprocessor define for adding a "near" section attribute for allowing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7de7009a00ba502e49978fb9b8a7dcd5c2743151;p=clang Add a preprocessor define for adding a "near" section attribute for allowing objects to be placed at shared memory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85007 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 66d6824b6f..f418c5a81c 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1533,6 +1533,8 @@ namespace { Define(Defines, "ram", "__attribute__((address_space(0)))"); Define(Defines, "_section(SectName)", "__attribute__((section(SectName)))"); + Define(Defines, "near", + "__attribute__((section(\"Address=NEAR\")))"); Define(Defines, "_address(Addr)", "__attribute__((section(\"Address=\"#Addr)))"); Define(Defines, "_CONFIG(conf)", "asm(\"CONFIG \"#conf)");