Put FN_NOTE_AlwaysInline and others in FnAttr namespace.
llvm-svn: 56527
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index 4fd3d03..a6f6bd7 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -430,7 +430,7 @@
Function *F = loopHeader->getParent();
// Do not unswitch if the function is optimized for size.
- if (!F->isDeclaration() && F->hasNote(FN_NOTE_OptimizeForSize))
+ if (!F->isDeclaration() && F->hasNote(FnAttr::OptimizeForSize))
return false;
// Check to see if it would be profitable to unswitch current loop.