]> granicus.if.org Git - clang/commitdiff
Use LLVM_ATTRIBUTE_NOINLINE instead of attribute((noinline)).
authorTed Kremenek <kremenek@apple.com>
Mon, 15 Nov 2010 23:11:54 +0000 (23:11 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 15 Nov 2010 23:11:54 +0000 (23:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119287 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp

index 633b64ccc5b0bf3ad062ef3ecda2789fe271652b..9962bd21517752ae1cbc82485c2de8b3f1a3670b 100644 (file)
@@ -42,6 +42,7 @@
 #include "llvm/System/Program.h"
 #include "llvm/System/Signals.h"
 #include "llvm/System/Threading.h"
+#include "llvm/Support/Compiler.h"
 
 using namespace clang;
 using namespace clang::cxcursor;
@@ -328,7 +329,7 @@ public:
   bool IsInRegionOfInterest(CXCursor C);
   bool RunVisitorWorkList(VisitorWorkList &WL);
   void EnqueueWorkList(VisitorWorkList &WL, Stmt *S);
-  bool VisitDataRecursive(Stmt *S) __attribute__((noinline));
+  bool VisitDataRecursive(Stmt *S) LLVM_ATTRIBUTE_NOINLINE;
 };
 
 } // end anonymous namespace