diff options
author | Vedant Kumar <vsk@apple.com> | 2019-11-19 12:51:10 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2019-11-19 12:51:12 -0800 |
commit | 0d4211f4e753057feec32938e596d037d4f5a6aa (patch) | |
tree | a8caf2d1ff3fb13b151849f867489b29ba8246ec /compiler-rt/lib | |
parent | 568db780bb7267651a902da8e85bc59fc89aea70 (diff) | |
download | bcm5719-llvm-0d4211f4e753057feec32938e596d037d4f5a6aa.tar.gz bcm5719-llvm-0d4211f4e753057feec32938e596d037d4f5a6aa.zip |
[profile] Address unused function warnings on Windows after D69586
This '#ifdef's out two functions which are unused on Windows, to prevent
-Wunused-function warnings.
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r-- | compiler-rt/lib/profile/InstrProfilingFile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index 875cdf098b3..d775f6b2040 100644 --- a/compiler-rt/lib/profile/InstrProfilingFile.c +++ b/compiler-rt/lib/profile/InstrProfilingFile.c @@ -414,6 +414,7 @@ static void assertIsZero(int *i) { } #endif +#if !defined(__Fuchsia__) && !defined(_WIN32) /* Write a partial profile to \p Filename, which is required to be backed by * the open file object \p File. */ static int writeProfileWithFileObject(const char *Filename, FILE *File) { @@ -433,6 +434,7 @@ static void unlockProfile(int *ProfileRequiresUnlock, FILE *File) { lprofUnlockFileHandle(File); *ProfileRequiresUnlock = 0; } +#endif // !defined(__Fuchsia__) && !defined(_WIN32) static void initializeProfileForContinuousMode(void) { if (!__llvm_profile_is_continuous_mode_enabled()) |