[llvm-commits] [llvm-gcc-4.2] r55684 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Devang Patel
dpatel at apple.com
Tue Sep 2 17:33:57 PDT 2008
Author: dpatel
Date: Tue Sep 2 19:33:57 2008
New Revision: 55684
URL: http://llvm.org/viewvc/llvm-project?rev=55684&view=rev
Log:
encode always_inline as a function note.
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=55684&r1=55683&r2=55684&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:33:57 2008
@@ -660,7 +660,11 @@
Builder.getFolder().CreateBitCast(Fn, SBP)
);
}*/
-
+
+ // Handle always_inline attribute
+ if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (FnDecl)))
+ Fn->setNotes(FN_NOTE_AlwaysInline);
+
// Handle annotate attributes
if (DECL_ATTRIBUTES(FnDecl))
AddAnnotateAttrsToGlobal(Fn, FnDecl);
More information about the llvm-commits
mailing list