Provide a default constructor for TimeValue. This was used, but only in
authorChandler Carruth <chandlerc@gmail.com>
Sat, 5 Jan 2013 00:23:09 +0000 (00:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 5 Jan 2013 00:23:09 +0000 (00:23 +0000)
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

include/llvm/Support/TimeValue.h

index 161214cbd32551acb107146147995de99f06ea03..ab7401a5c1215d9eba95eafc5e07c54f62b4d33c 100644 (file)
@@ -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