[llvm-commits] [llvm] r171568 - /llvm/trunk/include/llvm/Support/TimeValue.h
Chandler Carruth
chandlerc at gmail.com
Fri Jan 4 16:23:10 PST 2013
Author: chandlerc
Date: Fri Jan 4 18:23:09 2013
New Revision: 171568
URL: http://llvm.org/viewvc/llvm-project?rev=171568&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/Support/TimeValue.h
Modified: llvm/trunk/include/llvm/Support/TimeValue.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/TimeValue.h?rev=171568&r1=171567&r2=171568&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/TimeValue.h (original)
+++ llvm/trunk/include/llvm/Support/TimeValue.h Fri Jan 4 18:23:09 2013
@@ -82,6 +82,9 @@
/// @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
More information about the llvm-commits
mailing list