summaryrefslogtreecommitdiff
path: root/include/llvm/Support/TimeValue.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-01-05 00:23:09 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-01-05 00:23:09 +0000
commitfa511bf6c286bb93236ee5aa08e7848414459d94 (patch)
tree16d5d958df9e0f1d97ee66efed6bdf3f451eea93 /include/llvm/Support/TimeValue.h
parent319120f6229dcf37f288be2719bc095a2f454d55 (diff)
downloadllvm-fa511bf6c286bb93236ee5aa08e7848414459d94.tar.gz
llvm-fa511bf6c286bb93236ee5aa08e7848414459d94.tar.bz2
llvm-fa511bf6c286bb93236ee5aa08e7848414459d94.tar.xz
Provide a default constructor for TimeValue. This was used, but only in
if-ed out code paths and on Windows. Hopefully restores the Windows build. Thanks to Reid Kleckner for helping triage this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/TimeValue.h')
-rw-r--r--include/llvm/Support/TimeValue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/TimeValue.h b/include/llvm/Support/TimeValue.h
index 161214cbd3..ab7401a5c1 100644
--- a/include/llvm/Support/TimeValue.h
+++ b/include/llvm/Support/TimeValue.h
@@ -82,6 +82,9 @@ namespace sys {
/// @name Constructors
/// @{
public:
+ /// \brief Default construct a time value, initializing to ZeroTime.
+ TimeValue() : seconds_(0), nanos_(0) {}
+
/// Caller provides the exact value in seconds and nanoseconds. The
/// \p nanos argument defaults to zero for convenience.
/// @brief Explicit constructor