aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/AttributeList.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-25 18:44:54 +0000
committerChris Lattner <sabre@nondot.org>2009-04-25 18:44:54 +0000
commit5e204486a7dd1e5f7e14e941a2c7e707a8ad1a3b (patch)
tree826c7703251ed4569e88eefbc418c8e8a203ba2b /lib/Parse/AttributeList.cpp
parent84bb944dee0cc102635b162c669f99c529c60c02 (diff)
accept an ignore the no_instrument_function attribute. Since we don't
support -pg, we never instrument :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/AttributeList.cpp')
-rw-r--r--lib/Parse/AttributeList.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/AttributeList.cpp b/lib/Parse/AttributeList.cpp
index 8048db887d..a9c552ba17 100644
--- a/lib/Parse/AttributeList.cpp
+++ b/lib/Parse/AttributeList.cpp
@@ -139,6 +139,8 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo *Name) {
case 22:
if (!memcmp(Str, "objc_ownership_returns", 22))
return AT_objc_ownership_returns;
+ if (!memcmp(Str, "no_instrument_function", 22))
+ return AT_no_instrument_function;
break;
}
return UnknownAttribute;