diff options
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/EmptyFile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/EmptyFile.cpp b/llvm/lib/CodeGen/GlobalISel/EmptyFile.cpp index b87d952..02cfde8 100644 --- a/llvm/lib/CodeGen/GlobalISel/EmptyFile.cpp +++ b/llvm/lib/CodeGen/GlobalISel/EmptyFile.cpp @@ -12,8 +12,10 @@ /// \todo This file should be removed when GlobalISel is not optional anymore. //===----------------------------------------------------------------------===// +#include "llvm/Support/Compiler.h" + // Anonymous namespace so that we do not step on anyone's toes. namespace { -__attribute__ ((unused)) void foo(void) { +LLVM_ATTRIBUTE_UNUSED void foo(void) { } } |