diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2010-10-23 08:44:57 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2010-10-23 08:44:57 +0000 |
| commit | c3ce5840af4fab8496a48488bb59660698397fd2 (patch) | |
| tree | f84f4f477b0510121c233d834ff848bd6508ebf4 /clang/lib | |
| parent | 82058c05f874ab156a797b762af9c0182316b679 (diff) | |
| download | bcm5719-llvm-c3ce5840af4fab8496a48488bb59660698397fd2.tar.gz bcm5719-llvm-c3ce5840af4fab8496a48488bb59660698397fd2.zip | |
Update remaining attribute macros to new style.
llvm-svn: 117204
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Lex/Lexer.cpp | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 650308b6dd2..b8383c3e58a 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -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); diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 519dd82285c..ad3d35af6bf 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -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) { |

