summaryrefslogtreecommitdiff
path: root/Source/cmDependsC.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-03-12 12:44:30 +0100
committerSebastian Holtermann <sebholt@xwmw.org>2019-03-13 18:01:03 +0100
commit3039fd7a2934f726b37ba4ef8379364441241e7d (patch)
treee3a1a85a7687867f7d35ace6c826383f40e9ea4b /Source/cmDependsC.cxx
parentb96c3c74dd76fb9805f02d7b9ce604bd135b34f8 (diff)
downloadcmake-3039fd7a2934f726b37ba4ef8379364441241e7d.tar.gz
cmDependsC: Use faster cmSystemTools::FileTimeCompare
The file stat caching feature of the local cmFileTimeComparison instance is unused in the addressed context. To avoid the allocation and initialization overhead of cmFileTimeComparison use cmSystemTools::FileTimeCompare instead.
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r--Source/cmDependsC.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx
index 57b5c36c47..a85f5ee9f3 100644
--- a/Source/cmDependsC.cxx
+++ b/Source/cmDependsC.cxx
@@ -6,7 +6,6 @@
#include <utility>
#include "cmAlgorithms.h"
-#include "cmFileTimeComparison.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
@@ -258,8 +257,8 @@ void cmDependsC::ReadCacheFile()
if (!haveFileName) {
haveFileName = true;
int newer = 0;
- cmFileTimeComparison comp;
- bool res = comp.FileTimeCompare(this->CacheFileName, line, &newer);
+ bool res =
+ cmSystemTools::FileTimeCompare(this->CacheFileName, line, &newer);
if (res && newer == 1) // cache is newer than the parsed file
{