[llvm-commits] [llvm-gcc-4.2] r56480 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Devang Patel
dpatel at apple.com
Mon Sep 22 15:41:22 PDT 2008
Author: dpatel
Date: Mon Sep 22 17:41:22 2008
New Revision: 56480
URL: http://llvm.org/viewvc/llvm-project?rev=56480&view=rev
Log:
Use hasNote() instead of getNotes().
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=56480&r1=56479&r2=56480&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Sep 22 17:41:22 2008
@@ -386,7 +386,7 @@
// marked as always_inline.
for (Module::iterator I = TheModule->begin(), E = TheModule->end();
I != E; ++I)
- if (!I->isDeclaration() && I->getNotes() == FN_NOTE_AlwaysInline) {
+ if (I->hasNote(FN_NOTE_AlwaysInline)) {
NeedAlwaysInliner = true;
break;
}
More information about the llvm-commits
mailing list