]> granicus.if.org Git - clang/commitdiff
Update remaining attribute macros to new style.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 23 Oct 2010 08:44:57 +0000 (08:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 23 Oct 2010 08:44:57 +0000 (08:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117204 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/SourceManager.cpp
lib/Lex/Lexer.cpp

index 650308b6dd2816ab7c17285dad7e96277c731290..b8383c3e58a0e34957916588393549b76897912e 100644 (file)
@@ -819,7 +819,7 @@ unsigned SourceManager::getInstantiationColumnNumber(SourceLocation Loc,
   return getColumnNumber(LocInfo.first, LocInfo.second, Invalid);
 }
 
-static DISABLE_INLINE void
+static LLVM_ATTRIBUTE_NOINLINE void
 ComputeLineNumbers(Diagnostic &Diag, ContentCache *FI,
                    llvm::BumpPtrAllocator &Alloc,
                    const SourceManager &SM, bool &Invalid);
index 519dd82285c97edbd6518a0c7cf813ec405f322d..ad3d35af6bf9e7af2ea3ce61b4891da01726d46f 100644 (file)
@@ -585,10 +585,8 @@ static inline bool isNumberBody(unsigned char c) {
 /// lexer buffer was all instantiated at a single point, perform the mapping.
 /// This is currently only used for _Pragma implementation, so it is the slow
 /// path of the hot getSourceLocation method.  Do not allow it to be inlined.
-static DISABLE_INLINE SourceLocation GetMappedTokenLoc(Preprocessor &PP,
-                                                       SourceLocation FileLoc,
-                                                       unsigned CharNo,
-                                                       unsigned TokLen);
+static LLVM_ATTRIBUTE_NOINLINE SourceLocation GetMappedTokenLoc(
+    Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
 static SourceLocation GetMappedTokenLoc(Preprocessor &PP,
                                         SourceLocation FileLoc,
                                         unsigned CharNo, unsigned TokLen) {