From 7f579b19b6f219d6c96002ac81bc2e8bb65911d1 Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Tue, 7 Jul 2009 04:42:23 +0000 Subject: [PATCH] pic16 preproc defs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74893 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index f850ea7dd4..34fbd44392 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1260,6 +1260,11 @@ namespace { virtual void getTargetDefines(const LangOptions &Opts, std::vector &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 {} -- 2.40.0