[llvm-commits] [llvm-gcc-4.2] r55683 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Devang Patel
dpatel at apple.com
Tue Sep 2 17:30:09 PDT 2008
Author: dpatel
Date: Tue Sep 2 19:30:09 2008
New Revision: 55683
URL: http://llvm.org/viewvc/llvm-project?rev=55683&view=rev
Log:
Use function notes to encode attribute noinline.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
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=55683&r1=55682&r2=55683&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Tue Sep 2 19:30:09 2008
@@ -651,12 +651,15 @@
AttributeUsedGlobals.insert(Fn);
// Handle noinline Functions
- if (lookup_attribute ("noinline", DECL_ATTRIBUTES (FnDecl))) {
+ if (lookup_attribute ("noinline", DECL_ATTRIBUTES (FnDecl)))
+ Fn->setNotes(FN_NOTE_NoInline);
+ /* FIXME: Remove llvm.noinline related code.
+ {
const Type *SBP= PointerType::getUnqual(Type::Int8Ty);
AttributeNoinlineFunctions.push_back(
Builder.getFolder().CreateBitCast(Fn, SBP)
);
- }
+ }*/
// Handle annotate attributes
if (DECL_ATTRIBUTES(FnDecl))
More information about the llvm-commits
mailing list