[llvm-commits] [llvm-gcc-4.2] r56512 - in /llvm-gcc-4.2/trunk/gcc: llvm-backend.cpp llvm-convert.cpp
Devang Patel
dpatel at apple.com
Tue Sep 23 15:53:25 PDT 2008
Author: dpatel
Date: Tue Sep 23 17:53:21 2008
New Revision: 56512
URL: http://llvm.org/viewvc/llvm-project?rev=56512&view=rev
Log:
Notes are implemented as an attribute at index ~0
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
llvm-gcc-4.2/trunk/gcc/llvm-convert.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=56512&r1=56511&r2=56512&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Sep 23 17:53:21 2008
@@ -386,7 +386,7 @@
// marked as always_inline.
for (Module::iterator I = TheModule->begin(), E = TheModule->end();
I != E; ++I)
- if (I->hasNote(FN_NOTE_AlwaysInline)) {
+ if (I->hasNote(ParamAttr::FN_NOTE_AlwaysInline)) {
NeedAlwaysInliner = true;
break;
}
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=56512&r1=56511&r2=56512&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Tue Sep 23 17:53:21 2008
@@ -652,7 +652,7 @@
// Handle noinline Functions
if (lookup_attribute ("noinline", DECL_ATTRIBUTES (FnDecl)))
- Fn->setNotes(FN_NOTE_NoInline);
+ Fn->setNotes(ParamAttr::FN_NOTE_NoInline);
/* FIXME: Remove llvm.noinline related code.
{
const Type *SBP= PointerType::getUnqual(Type::Int8Ty);
@@ -663,10 +663,10 @@
// Handle always_inline attribute
if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (FnDecl)))
- Fn->setNotes(FN_NOTE_AlwaysInline);
+ Fn->setNotes(ParamAttr::FN_NOTE_AlwaysInline);
if (optimize_size)
- Fn->setNotes(FN_NOTE_OptimizeForSize);
+ Fn->setNotes(ParamAttr::FN_NOTE_OptimizeForSize);
// Handle annotate attributes
if (DECL_ATTRIBUTES(FnDecl))
More information about the llvm-commits
mailing list