[llvm-commits] [dragonegg] r165598 - in /dragonegg/trunk/src: Backend.cpp Convert.cpp
Bill Wendling
isanbard at gmail.com
Tue Oct 9 20:58:12 PDT 2012
Author: void
Date: Tue Oct 9 22:58:12 2012
New Revision: 165598
URL: http://llvm.org/viewvc/llvm-project?rev=165598&view=rev
Log:
Update to new API.
Modified:
dragonegg/trunk/src/Backend.cpp
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=165598&r1=165597&r2=165598&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Tue Oct 9 22:58:12 2012
@@ -1826,9 +1826,9 @@
//TODO I != E; ++I)
//TODO if (!I->isDeclaration()) {
//TODO if (flag_disable_red_zone)
-//TODO I->addFnAttr(Attribute::NoRedZone);
+//TODO I->addFnAttr(Attributes::NoRedZone);
//TODO if (flag_no_implicit_float)
-//TODO I->addFnAttr(Attribute::NoImplicitFloat);
+//TODO I->addFnAttr(Attributes::NoImplicitFloat);
//TODO }
// Add an llvm.global_ctors global if needed.
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=165598&r1=165597&r2=165598&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Tue Oct 9 22:58:12 2012
@@ -1030,28 +1030,28 @@
// Handle noinline Functions
if (lookup_attribute ("noinline", DECL_ATTRIBUTES (FnDecl)))
- Fn->addFnAttr(Attribute::NoInline);
+ Fn->addFnAttr(Attributes::NoInline);
// Handle always_inline attribute
if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (FnDecl)))
- Fn->addFnAttr(Attribute::AlwaysInline);
+ Fn->addFnAttr(Attributes::AlwaysInline);
// Pass inline keyword to optimizer.
if (DECL_DECLARED_INLINE_P(FnDecl))
- Fn->addFnAttr(Attribute::InlineHint);
+ Fn->addFnAttr(Attributes::InlineHint);
if (optimize_size)
- Fn->addFnAttr(Attribute::OptimizeForSize);
+ Fn->addFnAttr(Attributes::OptimizeForSize);
// Handle stack smashing protection.
if (flag_stack_protect == 1)
- Fn->addFnAttr(Attribute::StackProtect);
+ Fn->addFnAttr(Attributes::StackProtect);
else if (flag_stack_protect == 2)
- Fn->addFnAttr(Attribute::StackProtectReq);
+ Fn->addFnAttr(Attributes::StackProtectReq);
// Handle naked attribute
if (lookup_attribute ("naked", DECL_ATTRIBUTES (FnDecl)))
- Fn->addFnAttr(Attribute::Naked);
+ Fn->addFnAttr(Attributes::Naked);
// Handle annotate attributes
if (DECL_ATTRIBUTES(FnDecl))
More information about the llvm-commits
mailing list