diff options
Diffstat (limited to 'lib/profile/InstrProfiling.h')
-rw-r--r-- | lib/profile/InstrProfiling.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/profile/InstrProfiling.h b/lib/profile/InstrProfiling.h index 740e2d4d5..3ef7eacf0 100644 --- a/lib/profile/InstrProfiling.h +++ b/lib/profile/InstrProfiling.h @@ -170,6 +170,14 @@ void __llvm_profile_initialize_file(void); */ const char *__llvm_profile_get_path_prefix(); +/*! + * \brief Return filename (including path) of the profile data. Note that if the + * user calls __llvm_profile_set_filename later after invoking this interface, + * the actual file name may differ from what is returned here. + * Side-effect: this API call will invoke malloc with dynamic memory allocation. + */ +const char *__llvm_profile_get_filename(); + /*! \brief Get the magic token for the file format. */ uint64_t __llvm_profile_get_magic(void); |