diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-16 01:20:23 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-16 01:20:23 +0000 |
commit | 966edd068f841278f1112118e8e17de4d1652e74 (patch) | |
tree | 3f9f63dd8fe01bd7ef1536c57ec2ac2897ce0a27 /llvm/runtime/libprofile/LineProfiling.c | |
parent | 70d14f5df3f6b358a8da7d562a83e80101acaf6b (diff) | |
download | bcm5719-llvm-966edd068f841278f1112118e8e17de4d1652e74.tar.gz bcm5719-llvm-966edd068f841278f1112118e8e17de4d1652e74.zip |
Rename LineProfiling to GCOVProfiling to more accurately represent what it
does. Also mostly implement it. Still a work-in-progress, but generates legal
output on crafted test cases.
llvm-svn: 129630
Diffstat (limited to 'llvm/runtime/libprofile/LineProfiling.c')
-rw-r--r-- | llvm/runtime/libprofile/LineProfiling.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/llvm/runtime/libprofile/LineProfiling.c b/llvm/runtime/libprofile/LineProfiling.c deleted file mode 100644 index 9db789ec0b5..00000000000 --- a/llvm/runtime/libprofile/LineProfiling.c +++ /dev/null @@ -1,40 +0,0 @@ -/*===- LineProfiling.c - Support library for line profiling ---------------===*\ -|* -|* The LLVM Compiler Infrastructure -|* -|* This file is distributed under the University of Illinois Open Source -|* License. See LICENSE.TXT for details. -|* -|*===----------------------------------------------------------------------===*| -|* -|* This file implements the call back routines for the line profiling -|* instrumentation pass. Link against this library when running code through -|* the -insert-line-profiling LLVM pass. -|* -\*===----------------------------------------------------------------------===*/ - -#include <stdlib.h> -#include <stdio.h> -#include <stdint.h> - -#include "llvm/Support/DataTypes.h" - -/* A file in this case is a translation unit. Each .o file built with line - * profiling enabled will emit to a different file. Only one file may be - * started at a time. - */ -void llvm_prof_linectr_start_file(const char *orig_filename) { - printf("[%s]\n", orig_filename); -} - -/* Emit data about a counter to the data file. */ -void llvm_prof_linectr_emit_counter(const char *dir, const char *file, - uint32_t line, uint32_t column, - uint64_t *counter) { - printf("%s/%s:%u:%u %llu\n", dir, file, line, column, - (unsigned long long)(*counter)); -} - -void llvm_prof_linectr_end_file() { - printf("-----\n"); -} |