[cfe-commits] r85007 - /cfe/trunk/lib/Basic/Targets.cpp

Sanjiv Gupta sanjiv.gupta at microchip.com
Sat Oct 24 11:08:20 PDT 2009


Author: sgupta
Date: Sat Oct 24 13:08:20 2009
New Revision: 85007

URL: http://llvm.org/viewvc/llvm-project?rev=85007&view=rev
Log:
Add a preprocessor define for adding a "near" section attribute for allowing 
objects to be placed at shared memory.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=85007&r1=85006&r2=85007&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Oct 24 13:08:20 2009
@@ -1533,6 +1533,8 @@
       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)");





More information about the cfe-commits mailing list