OSDN Git Service

LLVM_ATTRIBUTE_USED forces emission of a function. To silence unused function warning...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Sep 2012 16:46:22 +0000 (16:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 17 Sep 2012 16:46:22 +0000 (16:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164036 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FloatingPoint.cpp

index 141cde2..791f598 100644 (file)
@@ -577,8 +577,8 @@ namespace {
     friend bool operator<(const TableEntry &TE, unsigned V) {
       return TE.from < V;
     }
-    friend bool LLVM_ATTRIBUTE_USED operator<(unsigned V,
-                                              const TableEntry &TE) {
+    friend bool LLVM_ATTRIBUTE_UNUSED operator<(unsigned V,
+                                                const TableEntry &TE) {
       return V < TE.from;
     }
   };