[llvm] r260568 - Play nice with Visual Studio and attributes
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 11:33:21 PST 2016
Author: qcolombet
Date: Thu Feb 11 13:33:21 2016
New Revision: 260568
URL: http://llvm.org/viewvc/llvm-project?rev=260568&view=rev
Log:
Play nice with Visual Studio and attributes
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/EmptyFile.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/EmptyFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/EmptyFile.cpp?rev=260568&r1=260567&r2=260568&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/EmptyFile.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/EmptyFile.cpp Thu Feb 11 13:33:21 2016
@@ -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) {
}
}
More information about the llvm-commits
mailing list