diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-04-20 16:41:07 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-04-20 16:41:07 +0000 |
commit | f787002478f09af1741fb0f82a562002e6799c49 (patch) | |
tree | 8e7af3e9f1b2ee8ef743a97a9c5984e7a6def051 /tools/c-index-test | |
parent | 85b1c7ce94904873b1c0b7d08a6bce885d8eb245 (diff) |
Rename 'CXTUMemoryUsage…' to 'CXTUResourceUsage…'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index a1065a832f..f7b7a367cf 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -373,10 +373,10 @@ void PrintDiagnostics(CXTranslationUnit TU) { void PrintMemoryUsage(CXTranslationUnit TU) { unsigned long total = 0.0; unsigned i = 0; - CXTUMemoryUsage usage = clang_getCXTUMemoryUsage(TU); + CXTUResourceUsage usage = clang_getCXTUResourceUsage(TU); fprintf(stderr, "Memory usage:\n"); for (i = 0 ; i != usage.numEntries; ++i) { - const char *name = clang_getTUMemoryUsageName(usage.entries[i].kind); + const char *name = clang_getTUResourceUsageName(usage.entries[i].kind); unsigned long amount = usage.entries[i].amount; total += amount; fprintf(stderr, " %s : %ld bytes (%f MBytes)\n", name, amount, @@ -384,7 +384,7 @@ void PrintMemoryUsage(CXTranslationUnit TU) { } fprintf(stderr, " TOTAL = %ld bytes (%f MBytes)\n", total, ((double) total)/(1024*1024)); - clang_disposeCXTUMemoryUsage(usage); + clang_disposeCXTUResourceUsage(usage); } /******************************************************************************/ |