diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-09-16 21:37:56 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-09-16 21:37:56 +0000 |
commit | f630e49efc7bf3f1716b6daab3c2cc11a908754a (patch) | |
tree | 0d75be23a098a5db30544eb3bd5991f053f3005f /include/llvm/Support/Timer.h | |
parent | fbb13471ed99ab8fdc3dbadb091ee5e2295b7b26 (diff) | |
download | external_llvm-f630e49efc7bf3f1716b6daab3c2cc11a908754a.tar.gz external_llvm-f630e49efc7bf3f1716b6daab3c2cc11a908754a.tar.bz2 external_llvm-f630e49efc7bf3f1716b6daab3c2cc11a908754a.zip |
Use LLVM_DELETED_FUNCTION for copy constructors and copy assignment operators that aren't implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r-- | include/llvm/Support/Timer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index 404cb6d6c8..a7418827ca 100644 --- a/include/llvm/Support/Timer.h +++ b/include/llvm/Support/Timer.h @@ -15,6 +15,7 @@ #ifndef LLVM_SUPPORT_TIMER_H #define LLVM_SUPPORT_TIMER_H +#include "llvm/Support/Compiler.h" #include "llvm/Support/DataTypes.h" #include "llvm/ADT/StringRef.h" #include <cassert> @@ -130,7 +131,7 @@ private: /// class TimeRegion { Timer *T; - TimeRegion(const TimeRegion &); // DO NOT IMPLEMENT + TimeRegion(const TimeRegion &) LLVM_DELETED_FUNCTION; public: explicit TimeRegion(Timer &t) : T(&t) { T->startTimer(); @@ -168,8 +169,8 @@ class TimerGroup { std::vector<std::pair<TimeRecord, std::string> > TimersToPrint; TimerGroup **Prev, *Next; // Doubly linked list of TimerGroup's. - TimerGroup(const TimerGroup &TG); // DO NOT IMPLEMENT - void operator=(const TimerGroup &TG); // DO NOT IMPLEMENT + TimerGroup(const TimerGroup &TG) LLVM_DELETED_FUNCTION; + void operator=(const TimerGroup &TG) LLVM_DELETED_FUNCTION; public: explicit TimerGroup(StringRef name); ~TimerGroup(); |