[cfe-commits] r74893 - /cfe/trunk/lib/Basic/Targets.cpp
Sanjiv Gupta
sanjiv.gupta at microchip.com
Mon Jul 6 21:42:24 PDT 2009
Author: sgupta
Date: Mon Jul 6 23:42:23 2009
New Revision: 74893
URL: http://llvm.org/viewvc/llvm-project?rev=74893&view=rev
Log:
pic16 preproc defs.
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=74893&r1=74892&r2=74893&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Jul 6 23:42:23 2009
@@ -1260,6 +1260,11 @@
virtual void getTargetDefines(const LangOptions &Opts,
std::vector<char> &Defines) const {
Define(Defines, "__pic16");
+ Define(Defines, "rom", "__attribute__((address_space(1)))");
+ Define(Defines, "ram", "__attribute__((address_space(0)))");
+ Define(Defines, "_section(SectName)", "__attribute__((section(SectName)))");
+ Define(Defines, "_address(Addr)","__attribute__((section(\"Address=\"#Addr)))");
+ Define(Defines, "_CONFIG(conf)", "asm(\"CONFIG \"#conf)");
}
virtual void getTargetBuiltins(const Builtin::Info *&Records,
unsigned &NumRecords) const {}
More information about the cfe-commits
mailing list