]> granicus.if.org Git - clang/commitdiff
Remove ATTRIBUTE_UNUSED from the common pattern of disallowing copying.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 15 Aug 2010 10:17:39 +0000 (10:17 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 15 Aug 2010 10:17:39 +0000 (10:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111101 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/RecordLayoutBuilder.cpp
lib/Frontend/VerifyDiagnosticsClient.cpp

index d01c4a0523fe5c76a2ef4e6dda5d49815dfd138f..88d71ce04287eb01a2ae2b3fea7e0db79b569a9f 100644 (file)
@@ -660,9 +660,8 @@ class RecordLayoutBuilder {
 
   void UpdateAlignment(unsigned NewAlignment);
 
-  // DO NOT IMPLEMENT
-  RecordLayoutBuilder(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED;
-  void operator=(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED;
+  RecordLayoutBuilder(const RecordLayoutBuilder&);   // DO NOT IMPLEMENT
+  void operator=(const RecordLayoutBuilder&); // DO NOT IMPLEMENT
 public:
   static const CXXMethodDecl *ComputeKeyFunction(const CXXRecordDecl *RD);
 };
index f2a260631711c967b34f29cbe193c50d0bd162c8..ae36481444da0406eaa6b718f50d34a96798233a 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/Regex.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 
 VerifyDiagnosticsClient::VerifyDiagnosticsClient(Diagnostic &_Diags,
@@ -101,8 +100,8 @@ protected:
     : Location(Location), Text(Text), Count(Count) { }
 
 private:
-  Directive(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
-  void operator=(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT
+  Directive(const Directive&); // DO NOT IMPLEMENT
+  void operator=(const Directive&); // DO NOT IMPLEMENT
 };
 
 /// StandardDirective - Directive with string matching.