search for: timevalue

Displaying 20 results from an estimated 53 matches for "timevalue".

2014 Mar 19
3
[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak
In the file \lib\Support\Process.cpp on line 60, it seems as though an unnecessary heap allocation and memory leak occurs. This is the offending code: static TimeValue getElapsedWallTime() { static TimeValue &StartTime = *new TimeValue(TimeValue::now()); return TimeValue::now() - StartTime; } The issue is that the StartTime variable's value is allocated on the heap, after which a *reference* to it is stored (not the pointer itself). This means that t...
2004 Dec 14
2
[LLVMdev] __time_t type instead of __time64_t in win32/TimeValue.cpp
Hi, Is it necessary to use the VC6.1+ `__time64_t' type instead of __time_t in win32/TimeValue.cpp? --------------- In file included from c:/projects/src/llvm-1/llvm/lib/System/TimeValue.cpp:51: c:/projects/build/MinGW/llvm-1-1/lib/System/platform/TimeValue.cpp: In member function `std::string llvm::sys::TimeValue::toString() const': c:/projects/build/MinGW/llvm-1-1/lib/System/platfor...
2004 Dec 14
0
[LLVMdev] __time_t type instead of __time64_t in win32/TimeValue.cpp
I'm not sure. Perhaps Jeff Cohen knows as he wrote this. Reid. On Tue, 2004-12-14 at 11:51, Henrik Bach wrote: > Hi, > > Is it necessary to use the VC6.1+ `__time64_t' type instead of __time_t in > win32/TimeValue.cpp? > > --------------- > In file included from > c:/projects/src/llvm-1/llvm/lib/System/TimeValue.cpp:51: > c:/projects/build/MinGW/llvm-1-1/lib/System/platform/TimeValue.cpp: In > member function `std::string llvm::sys::TimeValue::toString() const': > c:/projects/buil...
2004 Dec 14
1
[LLVMdev] __time_t type instead of __time64_t inwin32/TimeValue.cpp
Replace __time_t with time_t in my question. I've compiled function: std::string TimeValue::toString() const { // Alas, asctime is not re-entrant on Windows... //hb: __time64_t ourTime = this->toEpochTime(); time_t ourTime = this->toEpochTime(); //hb: char* buffer = ::asctime(::_localtime64(&ourTime)); char* buffer = ::asctime(::localtime(&ourTime)); std::string...
2004 Sep 25
3
[LLVMdev] broken build?
Hi Reid, You've got a TimeValue.cpp which it looks like you just added to lib/System, but I can't compile it on Darwin because there's no Darwin/TimeValue.cpp. This breaks my ppc build. I'm not sure what TimeValue was supposed to be for, so I just blew it away in my tree. Please take a look at this. -Brian -- gae...
2014 Mar 19
2
[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak
...o:llvmdev-bounces at cs.uiuc.edu] > On Behalf Of Bryan Keiren > Subject: [LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak > In the file \lib\Support\Process.cpp on line 60, it seems as though an > unnecessary heap allocation and memory leak occurs. > static TimeValue getElapsedWallTime() { >  static TimeValue &StartTime = *new TimeValue(TimeValue::now()); >  return TimeValue::now() - StartTime; > } > The issue is that the StartTime variable's value is allocated on the heap, > after which a *reference* to it is stored (not the pointer it...
2004 Sep 25
0
[LLVMdev] broken build?
This should be fixed. Sorry for the breakage. I forgot to commit a bunch of files. Reid. On Fri, 2004-09-24 at 20:33, Brian R. Gaeke wrote: > Hi Reid, > > You've got a TimeValue.cpp which it looks like you just added to lib/System, > but I can't compile it on Darwin because there's no Darwin/TimeValue.cpp. > This breaks my ppc build. I'm not sure what TimeValue was supposed to be for, > so I just blew it away in my tree. Please take a look at this. &...
2014 Mar 19
2
[LLVMdev] getElapsedWallTime unnecessary heap allocation and memory leak
...; On Behalf Of Bryan Keiren > > Subject: [LLVMdev] getElapsedWallTime unnecessary heap allocation and > > memory leak > > > In the file \lib\Support\Process.cpp on line 60, it seems as though an > > unnecessary heap allocation and memory leak occurs. > > > static TimeValue getElapsedWallTime() { > > static TimeValue &StartTime = *new TimeValue(TimeValue::now()); > > return TimeValue::now() - StartTime; > > } > > > The issue is that the StartTime variable's value is allocated on the > > heap, after which a *reference* to it i...
2004 Dec 15
1
[LLVMdev] Patch with comment to __MINGW def in TimeValue.cpp
============================================================= Henrik Bach Open Source Developer e-mail: henrik_bach_llvm at hotmail.com ============================================================= Got Freedom? Software Freedom Day 2004 - 28th of August http://www.softwarefreedomday.org/ =============================================================
2004 Sep 25
2
[LLVMdev] broken build?
Here are the FreeBSD and Win32 versions of TimeValue.cpp (along with all the other Win32 changes I've submitted that have yet to be comitted). Note there is a bug in all the Unix versions in that the time is not being converted from the Posix origin of 1/1/1970. On Fri, 24 Sep 2004 22:06:37 -0700 Reid Spencer <reid at x10sys.com> wrote:...
2004 Nov 01
0
[LLVMdev] Final Visual Studio Patches
If you're getting this error in lib/System/Win32/TimeValue.cpp, then you are not building it correctly. This file is included by lib/System/TimeValue.cpp, which is what you ought to be building. None of the files under Win32 are to be compiled directly; they are all included by files in lib/System. On Mon, 01 Nov 2004 11:14:18 +0100 Morten Ofstad <mo...
2004 Dec 14
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...right now. BY_HANDLE_FILE_INFORMATION isn't the correct API, as Path doesn't have an open file handle handy. Nor does it need one. Reid Spencer wrote: >Henrik, > >modTime.fromWin32Time(ftLastWriteTime); > Note that you'll need write a "fromWin32Time" for the TimeValue > class to make the conversion of ftLastWriteTime to TimeValue's > notion of normalized time. > >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; > >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); > >The mode, user, and group fields aren'...
2015 Jun 10
2
[LLVMdev] Self-compiling clang on Windows
...n\ /p:TrackFileAccess=false /p:Platform="x64" /fileLogger ALL_BUILD.vcxproj It barfed on an occurrence of __try but that was only in a test file so I commented it out and retried. Now it's getting an error I can't quite make sense of: In file included from C:\llvm2\lib\Support\TimeValue.cpp:55: C:\llvm2\lib\Support/Windows/TimeValue.inc(48,7): warning : unused variable 'Error' [-Wunused-variable] [C:\llvm2\build\lib\Support\LLVMSupport.vcxproj] CL : int error =: :_localtime64_s(&Storage, &OurTime); [C:\llvm2\build\lib\Support\LLVMSupport.vcxproj] ^ 1 warn...
2004 Dec 13
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Henrik, modTime.fromWin32Time(ftLastWriteTime); Note that you'll need write a "fromWin32Time" for the TimeValue class to make the conversion of ftLastWriteTime to TimeValue's notion of normalized time. isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); The mode, user, and group fields aren't applicabe to Win32 so just se...
2004 Nov 01
4
[LLVMdev] Final Visual Studio Patches
Hello, with the patches you accepted last week, everything now works with two one-line modifications. One is a missing include in a windows specific platform file and the other is a definition of a symbol I need to trick the linker (as discussed before)... The attached file is the complete diff between my version and the CVS. If you want to put my visual studio project files into the CVS,
2004 Dec 14
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...9;t the > correct API, as Path doesn't have an open file handle handy. Nor does > it need one. > > Reid Spencer wrote: > > >Henrik, > > > >modTime.fromWin32Time(ftLastWriteTime); > > Note that you'll need write a "fromWin32Time" for the TimeValue > > class to make the conversion of ftLastWriteTime to TimeValue's > > notion of normalized time. > > > >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; > > > >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); > > > >T...
2004 Dec 13
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Hi, Does any one have an idea which fields and how to the values correctly of the StatusInfo struct when dealing with the information returned in the BY_HANDLE_FILE_INFORMATION struct (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/by_handle_file_information_str.asp) from windows instead of the unix stuff in getStatusInfo: --- (excerpt start) -------------
2016 Oct 07
2
Using std::chrono
VS2013 support is dropped in about 1 week from now :) On Thu, Oct 6, 2016 at 11:37 PM Mueller-Roemer, Johannes Sebastian < Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote: > Visual Studio up to and including VS2013 implements > std::chrono::high_resolution_clock in an absolutely unusable manner (it is > a very low resolution clock…) [1]. Also, division is implemented
2004 Sep 25
1
[LLVMdev] broken build?
>Here are the FreeBSD and Win32 versions of TimeValue.cpp (along with all >the other Win32 changes I've submitted that have yet to be comitted). Please give me a hint when the files are committed... I have some fixes to commit, too. Thanks. Henrik _________________________________________________________________ F� alle de nye og sjove iko...
2009 Apr 03
3
[LLVMdev] build error on libLLVMSystem.a without any useful error message
...uild llvm[1]: Compiling Memory.cpp for Debug build llvm[1]: Compiling Mutex.cpp for Debug build llvm[1]: Compiling Path.cpp for Debug build llvm[1]: Compiling Process.cpp for Debug build llvm[1]: Compiling Program.cpp for Debug build llvm[1]: Compiling Signals.cpp for Debug build llvm[1]: Compiling TimeValue.cpp for Debug build llvm[1]: Building Debug Archive Library libLLVMSystem.a make[1]: *** [/Users/nraynaud/Desktop/geek/llvm-svn/build/Debug/lib/libLLVMSystem.a] Error 1 make: *** [all] Error 1 it looks like the file is empty : nraynaud at macaron-2:~/Desktop/geek/llvm-svn/build$ ls -l Debug/lib/li...