[cfe-commits] r64538 - in /cfe/trunk: include/clang/Parse/AttributeList.h lib/Parse/AttributeList.cpp
Anders Carlsson
andersca at mac.com
Fri Feb 13 20:12:58 PST 2009
Author: andersca
Date: Fri Feb 13 22:12:57 2009
New Revision: 64538
URL: http://llvm.org/viewvc/llvm-project?rev=64538&view=rev
Log:
Don't ignore the const attribute - we even have CG support for that. Do ignore the malloc attribute however.
Modified:
cfe/trunk/include/clang/Parse/AttributeList.h
cfe/trunk/lib/Parse/AttributeList.cpp
Modified: cfe/trunk/include/clang/Parse/AttributeList.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/AttributeList.h?rev=64538&r1=64537&r2=64538&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/AttributeList.h (original)
+++ cfe/trunk/include/clang/Parse/AttributeList.h Fri Feb 13 22:12:57 2009
@@ -56,7 +56,6 @@
AT_fastcall,
AT_format,
AT_IBOutlet, // Clang-specific.
- AT_malloc,
AT_mode,
AT_noinline,
AT_nonnull,
Modified: cfe/trunk/lib/Parse/AttributeList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/AttributeList.cpp?rev=64538&r1=64537&r2=64538&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/AttributeList.cpp (original)
+++ cfe/trunk/lib/Parse/AttributeList.cpp Fri Feb 13 22:12:57 2009
@@ -60,11 +60,11 @@
break;
case 5:
if (!memcmp(Str, "alias", 5)) return AT_alias;
- if (!memcmp(Str, "const", 5)) return IgnoredAttribute; // FIXME!
+ if (!memcmp(Str, "const", 5)) return AT_const;
break;
case 6:
if (!memcmp(Str, "packed", 6)) return AT_packed;
- if (!memcmp(Str, "malloc", 6)) return AT_malloc;
+ if (!memcmp(Str, "malloc", 6)) return IgnoredAttribute;
if (!memcmp(Str, "format", 6)) return AT_format;
if (!memcmp(Str, "unused", 6)) return AT_unused;
if (!memcmp(Str, "blocks", 6)) return AT_blocks;
More information about the cfe-commits
mailing list