Fix breakage caused by r262636.
authorEaswaran Raman <eraman@google.com>
Thu, 3 Mar 2016 18:53:20 +0000 (18:53 +0000)
committerEaswaran Raman <eraman@google.com>
Thu, 3 Mar 2016 18:53:20 +0000 (18:53 +0000)
Use LLVM_ATTRIBUTE_UNUSED instead of __attribute_((unused))

llvm-svn: 262643

llvm/lib/Analysis/InlineCost.cpp

index 08c04d5..4f69d1f 100644 (file)
@@ -585,7 +585,7 @@ bool CallAnalyzer::isKnownNonNullInCallee(Value *V) {
 // Adjust the threshold based on callsite hotness. Currently this is a nop.
 int CallAnalyzer::getAdjustedThreshold(int Threshold,
                                        Optional<uint64_t> CallSiteCount
-                                       __attribute__((unused))) {
+                                       LLVM_ATTRIBUTE_UNUSED) {
   // FIXME: The new threshold should be computed from the given Threshold and
   // the callsite hotness.
   return Threshold;